From 90621fecb700f9f8689358d5f501494672774f86 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 17 Apr 2015 17:14:43 +0200 Subject: [PATCH] refs #312, remove unwanted widget which is required only in GUI builder --- src/blackgui/components/invisibleinfoareacomponent.cpp | 8 +++++++- src/blackgui/components/invisibleinfoareacomponent.ui | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/blackgui/components/invisibleinfoareacomponent.cpp b/src/blackgui/components/invisibleinfoareacomponent.cpp index 5c90cad5a..0ad304216 100644 --- a/src/blackgui/components/invisibleinfoareacomponent.cpp +++ b/src/blackgui/components/invisibleinfoareacomponent.cpp @@ -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(); } diff --git a/src/blackgui/components/invisibleinfoareacomponent.ui b/src/blackgui/components/invisibleinfoareacomponent.ui index ebeace10d..2f0935dd2 100644 --- a/src/blackgui/components/invisibleinfoareacomponent.ui +++ b/src/blackgui/components/invisibleinfoareacomponent.ui @@ -30,7 +30,7 @@ 1 - +