From 44d148df7701f01a679a669bc68a1dc6e89fc18a Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 13 May 2013 16:00:27 +0200 Subject: [PATCH] Main widget menu redundancy removed --- src/ui/MainWindow.cc | 18 +++++++++--------- src/ui/MainWindow.ui | 6 ------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index fb3c142dc..ceed9c319 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -836,16 +836,16 @@ void MainWindow::addCentralWidget(QWidget* widget, const QString& title) { centerStack->addWidget(widget); - QAction* tempAction = ui.menuMain->addAction(title); - - tempAction->setCheckable(true); - QVariant var; - var.setValue((QWidget*)widget); - tempAction->setData(var); - centerStackActionGroup->addAction(tempAction); - connect(tempAction,SIGNAL(triggered()),this, SLOT(showCentralWidget())); +// QAction* tempAction = ui.menuMain->addAction(title); + +// tempAction->setCheckable(true); +// QVariant var; +// var.setValue((QWidget*)widget); +// tempAction->setData(var); +// centerStackActionGroup->addAction(tempAction); +// connect(tempAction,SIGNAL(triggered()),this, SLOT(showCentralWidget())); //connect(widget, SIGNAL(visibilityChanged(bool)), tempAction, SLOT(setChecked(bool))); - tempAction->setChecked(widget->isVisible()); +// tempAction->setChecked(widget->isVisible()); } } diff --git a/src/ui/MainWindow.ui b/src/ui/MainWindow.ui index 0a238b786..4d16d9f33 100644 --- a/src/ui/MainWindow.ui +++ b/src/ui/MainWindow.ui @@ -115,15 +115,9 @@ - - - Main Widget - - - -- 2.22.0