summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-06-24 20:50:52 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-06-24 20:50:52 (GMT)
commit33f7717536dda77c15b3338e07a6b17bb2405d5c (patch)
tree38fc8df64df46232749036d2786f075e4791d5a0 /Source/QtDialog
parentb64aadc5b045d85f86e5341992a236f45af59086 (diff)
downloadCMake-33f7717536dda77c15b3338e07a6b17bb2405d5c.zip
CMake-33f7717536dda77c15b3338e07a6b17bb2405d5c.tar.gz
CMake-33f7717536dda77c15b3338e07a6b17bb2405d5c.tar.bz2
ENH: Save/restore splitter sizes. Fixes #9070.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 36d99b7..ce7c786 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -77,6 +77,9 @@ CMakeSetupDialog::CMakeSetupDialog()
this->ProgressBar->reset();
this->RemoveEntry->setEnabled(false);
this->AddEntry->setEnabled(false);
+
+ QByteArray p = settings.value("SplitterSizes").toByteArray();
+ this->Splitter->restoreState(p);
bool groupView = settings.value("GroupView", false).toBool();
if(groupView)
@@ -255,6 +258,7 @@ CMakeSetupDialog::~CMakeSetupDialog()
settings.beginGroup("Settings/StartPath");
settings.setValue("Height", this->height());
settings.setValue("Width", this->width());
+ settings.setValue("SplitterSizes", this->Splitter->saveState());
// wait for thread to stop
this->CMakeThread->quit();