瀏覽代碼

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

Clinton Stimpson 16 年之前
父節點
當前提交
33f7717536
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/QtDialog/CMakeSetupDialog.cxx

+ 4 - 0
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();