Merge branch 'core-feat/panel' into pre

This commit is contained in:
Rick Lan
2025-06-18 17:05:13 +08:00

View File

@@ -88,6 +88,10 @@ public:
label.setText(text);
label.setAlignment(Qt::AlignRight | Qt::AlignVCenter);
hlayout->addWidget(&label);
if (text == "") {
setContentsMargins(0, 50, 0, 0); // 30px top margin, 10px bottom margin
// This will create space above and below the entire header control.
}
}
void setText(const QString &text) { label.setText(text); }