summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetupDialog.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-06-11 02:19:14 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-06-11 02:19:14 (GMT)
commitdfea280ff10ebe14594527c588a125bd445e3766 (patch)
tree37bfafab7078f31322b4069a91afe5c6bb582c2a /Source/QtDialog/CMakeSetupDialog.cxx
parent36576a4e7a4164572e4d710aa143b1c831bb0895 (diff)
downloadCMake-dfea280ff10ebe14594527c588a125bd445e3766.zip
CMake-dfea280ff10ebe14594527c588a125bd445e3766.tar.gz
CMake-dfea280ff10ebe14594527c588a125bd445e3766.tar.bz2
ENH: Add items under the Options menu for collapsing and expanding the variable
tree.
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 6330a15..2ec70d7 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -111,6 +111,13 @@ CMakeSetupDialog::CMakeSetupDialog()
debugAction->setCheckable(true);
QObject::connect(debugAction, SIGNAL(toggled(bool)),
this, SLOT(setDebugOutput(bool)));
+
+ QAction* expandAction = OptionsMenu->addAction(tr("&Expand Variables Tree"));
+ QObject::connect(expandAction, SIGNAL(triggered(bool)),
+ this->CacheValues, SLOT(expandAll()));
+ QAction* collapseAction = OptionsMenu->addAction(tr("&Collapse Variables Tree"));
+ QObject::connect(collapseAction, SIGNAL(triggered(bool)),
+ this->CacheValues, SLOT(collapseAll()));
QMenu* HelpMenu = this->menuBar()->addMenu(tr("&Help"));
QAction* a = HelpMenu->addAction(tr("About"));