summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-09-23 19:48:07 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-09-23 19:48:07 (GMT)
commit3d13502c986e43f070366d04891c8a3da05e2cb8 (patch)
tree346b0fa12b1c70a9ca8ad3c3a218d33f768ff0bc /Source/QtDialog
parent8e8acb7aaba8c17cb7407b198ca8d8d19046cc7c (diff)
downloadCMake-3d13502c986e43f070366d04891c8a3da05e2cb8.zip
CMake-3d13502c986e43f070366d04891c8a3da05e2cb8.tar.gz
CMake-3d13502c986e43f070366d04891c8a3da05e2cb8.tar.bz2
Make cmake-gui remember whether the "Advanced" checkbox was checked or not
Alex
Diffstat (limited to 'Source/QtDialog')
-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 7207a8a..29fcfc0 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -84,6 +84,10 @@ CMakeSetupDialog::CMakeSetupDialog()
this->setGroupedView(groupView);
this->groupedCheck->setCheckState(groupView ? Qt::Checked : Qt::Unchecked);
+ bool advancedView = settings.value("AdvancedView", false).toBool();
+ this->setAdvancedView(advancedView);
+ this->advancedCheck->setCheckState(advancedView?Qt::Checked : Qt::Unchecked);
+
QMenu* FileMenu = this->menuBar()->addMenu(tr("&File"));
this->ReloadCacheAction = FileMenu->addAction(tr("&Reload Cache"));
QObject::connect(this->ReloadCacheAction, SIGNAL(triggered(bool)),
@@ -963,6 +967,9 @@ void CMakeSetupDialog::setGroupedView(bool v)
void CMakeSetupDialog::setAdvancedView(bool v)
{
this->CacheValues->setShowAdvanced(v);
+ QSettings settings;
+ settings.beginGroup("Settings/StartPath");
+ settings.setValue("AdvancedView", v);
}
void CMakeSetupDialog::showUserChanges()