diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 14:22:08 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:09:08 (GMT) |
commit | fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d (patch) | |
tree | cd9736d600c9a8606ed40493c33c825a1d0f3f30 /Source/QtDialog | |
parent | 786e2695cb68402d44357002b438c95229c4fb19 (diff) | |
download | CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.zip CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.tar.gz CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.tar.bz2 |
Rename flags again and use variablewatch for cli
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 8 | ||||
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.h | 1 | ||||
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 7 | ||||
-rw-r--r-- | Source/QtDialog/QCMake.h | 2 |
4 files changed, 1 insertions, 17 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index a09504d..663753e 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -121,11 +121,8 @@ CMakeSetupDialog::CMakeSetupDialog() OptionsMenu->addAction(tr("&Warn Uninitialized (--warn-uninitialized)")); this->WarnUninitializedAction->setCheckable(true); this->WarnUnusedAction = - OptionsMenu->addAction(tr("&Warn Unused (--warn-unused)")); + OptionsMenu->addAction(tr("&Warn Unused (--warn-unused-vars)")); this->WarnUnusedAction->setCheckable(true); - this->WarnUnusedAllAction = - OptionsMenu->addAction(tr("&Warn Unused All (--warn-unused-all)")); - this->WarnUnusedAllAction->setCheckable(true); QAction* debugAction = OptionsMenu->addAction(tr("&Debug Output")); debugAction->setCheckable(true); @@ -256,9 +253,6 @@ void CMakeSetupDialog::initialize() QObject::connect(this->WarnUnusedAction, SIGNAL(triggered(bool)), this->CMakeThread->cmakeInstance(), SLOT(setWarnUnusedMode(bool))); - QObject::connect(this->WarnUnusedAllAction, SIGNAL(triggered(bool)), - this->CMakeThread->cmakeInstance(), - SLOT(setWarnUnusedAllMode(bool))); if(!this->SourceDirectory->text().isEmpty() || !this->BinaryDirectory->lineEdit()->text().isEmpty()) diff --git a/Source/QtDialog/CMakeSetupDialog.h b/Source/QtDialog/CMakeSetupDialog.h index f937248..c4d029a 100644 --- a/Source/QtDialog/CMakeSetupDialog.h +++ b/Source/QtDialog/CMakeSetupDialog.h @@ -95,7 +95,6 @@ protected: QAction* SuppressDevWarningsAction; QAction* WarnUninitializedAction; QAction* WarnUnusedAction; - QAction* WarnUnusedAllAction; QAction* InstallForCommandLineAction; State CurrentState; diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index 1f9fa3d..c319cb4 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -30,7 +30,6 @@ QCMake::QCMake(QObject* p) this->SuppressDevWarnings = false; this->WarnUninitializedMode = false; this->WarnUnusedMode = false; - this->WarnUnusedAllMode = false; qRegisterMetaType<QCMakeProperty>(); qRegisterMetaType<QCMakePropertyList>(); @@ -170,7 +169,6 @@ void QCMake::configure() std::cerr << "set warn uninitialized " << this->WarnUninitializedMode << "\n"; this->CMakeInstance->SetWarnUninitialized(this->WarnUninitializedMode); this->CMakeInstance->SetWarnUnused(this->WarnUnusedMode); - this->CMakeInstance->SetDefaultToUsed(!this->WarnUnusedAllMode); this->CMakeInstance->PreLoadCMakeFiles(); cmSystemTools::ResetErrorOccuredFlag(); @@ -434,8 +432,3 @@ void QCMake::setWarnUnusedMode(bool value) { this->WarnUnusedMode = value; } - -void QCMake::setWarnUnusedAllMode(bool value) -{ - this->WarnUnusedAllMode = value; -} diff --git a/Source/QtDialog/QCMake.h b/Source/QtDialog/QCMake.h index 6056a8c..0d10823 100644 --- a/Source/QtDialog/QCMake.h +++ b/Source/QtDialog/QCMake.h @@ -92,8 +92,6 @@ public slots: void setWarnUninitializedMode(bool value); /// set whether to run cmake with warnings about unused variables void setWarnUnusedMode(bool value); - /// set whether to run cmake with warnings about all unused variables - void setWarnUnusedAllMode(bool value); public: /// get the list of cache properties |