diff options
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 4ac1d5c..81a1e5a 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -59,6 +59,7 @@ void QCMakeThread::run() CMakeSetupDialog::CMakeSetupDialog() : ExitAfterGenerate(true), CacheModified(false), CurrentState(Interrupting) { + this->SuppressDevWarnings = false; // create the GUI QSettings settings; settings.beginGroup("Settings/StartPath"); @@ -95,8 +96,11 @@ CMakeSetupDialog::CMakeSetupDialog() this->GenerateAction = ToolsMenu->addAction(tr("&Generate")); QObject::connect(this->GenerateAction, SIGNAL(triggered(bool)), this, SLOT(doGenerate())); + this->SuppressDevWarningsAction = ToolsMenu->addAction(tr("&Suppress dev Warnings")); + QObject::connect(this->SuppressDevWarningsAction, SIGNAL(triggered(bool)), + this, SLOT(doSuppressDev())); + this->SuppressDevWarningsAction->setCheckable(true); - QMenu* HelpMenu = this->menuBar()->addMenu(tr("&Help")); QAction* a = HelpMenu->addAction(tr("About")); QObject::connect(a, SIGNAL(triggered(bool)), @@ -304,6 +308,14 @@ void CMakeSetupDialog::finishGenerate(int err) } } +#include <iostream> +void CMakeSetupDialog::doSuppressDev() +{ + this->SuppressDevWarnings = !this->SuppressDevWarnings; + this->CMakeThread->cmakeInstance()-> + SetSuppressDevWarnings(this->SuppressDevWarnings); +} + void CMakeSetupDialog::doGenerate() { if(this->CurrentState == Generating) |