diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-07-12 19:48:51 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | f794d589a44918c905911eb7688d69350922c6b3 (patch) | |
tree | c5893a8eff5b26496740c5e4b77e47ca73268c8b /Source/QtDialog/CMakeSetupDialog.cxx | |
parent | 48b5b855934be341c02139c0bed88c35c1b40d8f (diff) | |
download | CMake-f794d589a44918c905911eb7688d69350922c6b3.zip CMake-f794d589a44918c905911eb7688d69350922c6b3.tar.gz CMake-f794d589a44918c905911eb7688d69350922c6b3.tar.bz2 |
Make --strict-mode option, and integrate with cmake-gui
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 74a3d35..7600897 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -114,8 +114,12 @@ CMakeSetupDialog::CMakeSetupDialog() this, SLOT(doInstallForCommandLine())); #endif QMenu* OptionsMenu = this->menuBar()->addMenu(tr("&Options")); - this->SuppressDevWarningsAction = OptionsMenu->addAction(tr("&Suppress dev Warnings (-Wno-dev)")); + this->SuppressDevWarningsAction = + OptionsMenu->addAction(tr("&Suppress dev Warnings (-Wno-dev)")); this->SuppressDevWarningsAction->setCheckable(true); + this->StrictModeAction = + OptionsMenu->addAction(tr("&Strict Mode (--strict-mode)")); + this->StrictModeAction->setCheckable(true); QAction* debugAction = OptionsMenu->addAction(tr("&Debug Output")); debugAction->setCheckable(true); @@ -240,6 +244,9 @@ void CMakeSetupDialog::initialize() QObject::connect(this->SuppressDevWarningsAction, SIGNAL(triggered(bool)), this->CMakeThread->cmakeInstance(), SLOT(setSuppressDevWarnings(bool))); + QObject::connect(this->StrictModeAction, SIGNAL(triggered(bool)), + this->CMakeThread->cmakeInstance(), + SLOT(setStrictMode(bool))); if(!this->SourceDirectory->text().isEmpty() || !this->BinaryDirectory->lineEdit()->text().isEmpty()) |