ENH: Add items under the Options menu for collapsing and expanding the variable

tree.
This commit is contained in:
Clinton Stimpson 2008-06-10 22:19:14 -04:00
parent 36576a4e7a
commit dfea280ff1
1 changed files with 7 additions and 0 deletions

View File

@ -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"));