NavigationPanel: refine stretch factor in split mode

This commit is contained in:
Le Tan 2019-01-16 19:55:35 +08:00
parent e06ce87710
commit 750f80c3ca
2 changed files with 2 additions and 2 deletions

View File

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

View File

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