]> git.sur5r.net Git - bacula/bacula/commitdiff
Add code to save the state of the second splitter.
authorDirk H Bartley <dbartley@schupan.com>
Sat, 21 Mar 2009 02:37:27 +0000 (02:37 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 21 Mar 2009 02:37:27 +0000 (02:37 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8567 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/restore/restoretree.cpp
bacula/src/qt-console/restore/restoretree.h

index 37a78a1f4861b7364ed0e0b70ef0364b9dc2c03f..748499de09409e74128fa27183fd3de76086b7eb 100644 (file)
@@ -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();
 }
 
index 881b02c403142353f3fe925621b0f1631261846e..816f354df71004524e35298c6993f8ecf3184500 100644 (file)
@@ -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;