[Cmake-commits] [cmake-commits] clinton committed CMakeSetupDialog.cxx 1.57 1.58
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jun 24 16:50:54 EDT 2009
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv17650
Modified Files:
CMakeSetupDialog.cxx
Log Message:
ENH: Save/restore splitter sizes. Fixes #9070.
Index: CMakeSetupDialog.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetupDialog.cxx,v
retrieving revision 1.57
retrieving revision 1.58
diff -C 2 -d -r1.57 -r1.58
*** CMakeSetupDialog.cxx 30 Mar 2009 14:56:43 -0000 1.57
--- CMakeSetupDialog.cxx 24 Jun 2009 20:50:52 -0000 1.58
***************
*** 78,81 ****
--- 78,84 ----
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();
***************
*** 256,259 ****
--- 259,263 ----
settings.setValue("Height", this->height());
settings.setValue("Width", this->width());
+ settings.setValue("SplitterSizes", this->Splitter->saveState());
// wait for thread to stop
More information about the Cmake-commits
mailing list