ENH: Save/restore splitter sizes. Fixes #9070.

This commit is contained in:
Clinton Stimpson 2009-06-24 16:50:52 -04:00
parent b64aadc5b0
commit 33f7717536
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,9 @@ CMakeSetupDialog::CMakeSetupDialog()
this->ProgressBar->reset(); this->ProgressBar->reset();
this->RemoveEntry->setEnabled(false); this->RemoveEntry->setEnabled(false);
this->AddEntry->setEnabled(false); this->AddEntry->setEnabled(false);
QByteArray p = settings.value("SplitterSizes").toByteArray();
this->Splitter->restoreState(p);
bool groupView = settings.value("GroupView", false).toBool(); bool groupView = settings.value("GroupView", false).toBool();
if(groupView) if(groupView)
@ -255,6 +258,7 @@ CMakeSetupDialog::~CMakeSetupDialog()
settings.beginGroup("Settings/StartPath"); settings.beginGroup("Settings/StartPath");
settings.setValue("Height", this->height()); settings.setValue("Height", this->height());
settings.setValue("Width", this->width()); settings.setValue("Width", this->width());
settings.setValue("SplitterSizes", this->Splitter->saveState());
// wait for thread to stop // wait for thread to stop
this->CMakeThread->quit(); this->CMakeThread->quit();