refs #312, remove unwanted widget which is required only in GUI builder

This commit is contained in:
Klaus Basan
2015-04-17 17:14:43 +02:00
parent ccc01c6824
commit 90621fecb7
2 changed files with 8 additions and 2 deletions

View File

@@ -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();
} }

View File

@@ -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>