From 33f7717536dda77c15b3338e07a6b17bb2405d5c Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Wed, 24 Jun 2009 16:50:52 -0400 Subject: ENH: Save/restore splitter sizes. Fixes #9070. --- Source/QtDialog/CMakeSetupDialog.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- cgit v0.12