mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-04-07 14:43:58 +08:00
Merge branch 'core-feat/panel' into pre
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user