瀏覽代碼

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);