diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-06-11 02:19:14 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-06-11 02:19:14 (GMT) |
commit | dfea280ff10ebe14594527c588a125bd445e3766 (patch) | |
tree | 37bfafab7078f31322b4069a91afe5c6bb582c2a /Source/QtDialog | |
parent | 36576a4e7a4164572e4d710aa143b1c831bb0895 (diff) | |
download | CMake-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')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 7 |
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")); |