summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetupDialog.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-08-25 16:43:02 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-01 17:08:15 (GMT)
commit786e2695cb68402d44357002b438c95229c4fb19 (patch)
tree7b008945264d33ab95f5e83f5b1a3fd66d2aea98 /Source/QtDialog/CMakeSetupDialog.cxx
parent636e6c4ef7e79113802714dbc7ade77d4f04e809 (diff)
downloadCMake-786e2695cb68402d44357002b438c95229c4fb19.zip
CMake-786e2695cb68402d44357002b438c95229c4fb19.tar.gz
CMake-786e2695cb68402d44357002b438c95229c4fb19.tar.bz2
Add warn-unused to the Qt interface
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index a5510af..a09504d 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -120,6 +120,12 @@ CMakeSetupDialog::CMakeSetupDialog()
this->WarnUninitializedAction =
OptionsMenu->addAction(tr("&Warn Uninitialized (--warn-uninitialized)"));
this->WarnUninitializedAction->setCheckable(true);
+ this->WarnUnusedAction =
+ OptionsMenu->addAction(tr("&Warn Unused (--warn-unused)"));
+ 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);
@@ -247,6 +253,12 @@ void CMakeSetupDialog::initialize()
QObject::connect(this->WarnUninitializedAction, SIGNAL(triggered(bool)),
this->CMakeThread->cmakeInstance(),
SLOT(setWarnUninitializedMode(bool)));
+ 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())