Преглед изворни кода

NavigationPanel: refine stretch factor in split mode

Le Tan пре 6 година
родитељ
комит
750f80c3ca
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/vmainwindow.cpp
  2. 1 1
      src/vtagexplorer.cpp

+ 1 - 1
src/vmainwindow.cpp

@@ -3516,7 +3516,7 @@ void VMainWindow::setupFileListSplitOut(bool p_enabled)
     m_fileList->setEnableSplitOut(p_enabled);
     if (p_enabled) {
         m_nbSplitter->setOrientation(Qt::Horizontal);
-        m_nbSplitter->setStretchFactor(0, 1);
+        m_nbSplitter->setStretchFactor(0, 0);
         m_nbSplitter->setStretchFactor(1, 1);
     } else {
         m_nbSplitter->setOrientation(Qt::Vertical);

+ 1 - 1
src/vtagexplorer.cpp

@@ -545,7 +545,7 @@ void VTagExplorer::setupFileListSplitOut(bool p_enabled)
     m_splitBtn->setChecked(p_enabled);
     if (p_enabled) {
         m_splitter->setOrientation(Qt::Horizontal);
-        m_splitter->setStretchFactor(0, 1);
+        m_splitter->setStretchFactor(0, 0);
         m_splitter->setStretchFactor(1, 1);
     } else {
         m_splitter->setOrientation(Qt::Vertical);