From: Dirk H Bartley Date: Sat, 21 Mar 2009 02:37:27 +0000 (+0000) Subject: Add code to save the state of the second splitter. X-Git-Tag: Release-7.0.0~3287 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aac1b16033cee13325dcdfc66dc4c437be736aba;p=bacula%2Fbacula Add code to save the state of the second splitter. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8567 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/restore/restoretree.cpp b/bacula/src/qt-console/restore/restoretree.cpp index 37a78a1f48..748499de09 100644 --- a/bacula/src/qt-console/restore/restoretree.cpp +++ b/bacula/src/qt-console/restore/restoretree.cpp @@ -66,6 +66,7 @@ restoreTree::restoreTree() area->setWidgetResizable(true); m_splitter->addWidget(splitter); m_splitter->addWidget(area); + splitter->setCollapsible(0, false); gridLayout->addWidget(m_splitter, 0, 0, 1, 1); @@ -689,7 +690,8 @@ void restoreTree::writeSettings() { QSettings settings(m_console->m_dir->name(), "bat"); settings.beginGroup(m_groupText); - settings.setValue(m_splitText, m_splitter->saveState()); + settings.setValue(m_splitText1, m_splitter->saveState()); + settings.setValue(m_splitText2, splitter->saveState()); settings.endGroup(); } @@ -699,10 +701,12 @@ void restoreTree::writeSettings() void restoreTree::readSettings() { m_groupText = tr("RestoreTreePage"); - m_splitText = "splitterSizes_1"; + m_splitText1 = "splitterSizes1_2"; + m_splitText2 = "splitterSizes2_2"; QSettings settings(m_console->m_dir->name(), "bat"); settings.beginGroup(m_groupText); - m_splitter->restoreState(settings.value(m_splitText).toByteArray()); + m_splitter->restoreState(settings.value(m_splitText1).toByteArray()); + splitter->restoreState(settings.value(m_splitText2).toByteArray()); settings.endGroup(); } diff --git a/bacula/src/qt-console/restore/restoretree.h b/bacula/src/qt-console/restore/restoretree.h index 881b02c403..816f354df7 100644 --- a/bacula/src/qt-console/restore/restoretree.h +++ b/bacula/src/qt-console/restore/restoretree.h @@ -97,7 +97,8 @@ private: QSplitter *m_splitter; QString m_groupText; - QString m_splitText; + QString m_splitText1; + QString m_splitText2; bool m_populated; bool m_dropdownChanged; QRegExp m_winRegExpDrive;