mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +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(new Ui::CInvisibleInfoAreaComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
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();
|
this->initInfoArea();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<attribute name="dockWidgetArea">
|
<attribute name="dockWidgetArea">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
<widget class="QWidget" name="qw_Navigaor"/>
|
<widget class="QWidget" name="qw_NavigatorDummy"/>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
|||||||
Reference in New Issue
Block a user