mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
NavigationPanel: refine stretch factor in split mode
This commit is contained in:
parent
e06ce87710
commit
750f80c3ca
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user