From dfea280ff10ebe14594527c588a125bd445e3766 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 10 Jun 2008 22:19:14 -0400 Subject: ENH: Add items under the Options menu for collapsing and expanding the variable tree. --- Source/QtDialog/CMakeSetupDialog.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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")); -- cgit v0.12