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