mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #312, remove unwanted widget which is required only in GUI builder
This commit is contained in:
@@ -24,7 +24,13 @@ namespace BlackGui
|
||||
ui(new Ui::CInvisibleInfoAreaComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->ui->comp_Navigator->allowStatusBar(false);
|
||||
|
||||
// remove widgets just required for GUI builder, but not needed for promoted component
|
||||
this->ui->comp_Navigator->layout()->removeWidget(this->ui->qw_NavigatorDummy);
|
||||
delete this->ui->qw_NavigatorDummy;
|
||||
this->ui->qw_NavigatorDummy = nullptr;
|
||||
|
||||
// init area
|
||||
this->initInfoArea();
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<attribute name="dockWidgetArea">
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="qw_Navigaor"/>
|
||||
<widget class="QWidget" name="qw_NavigatorDummy"/>
|
||||
</widget>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
||||
Reference in New Issue
Block a user