forked from qt-creator/qt-creator
Locator: Give the left column more space
Make it 1/2 of the total width. Task-number: QTCREATORBUG-16768 Change-Id: I6c87b6c9aa4dd39d598c4890a30cda7d6f386d99 Reviewed-by: Cristian Adam <cristian.adam@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
db098732f5
commit
7767f551f9
@@ -218,6 +218,7 @@ void CompletionList::resize()
|
||||
|
||||
const int width = qMax(730, windowSize.width() * 2 / 3);
|
||||
m_preferredSize = QSize(width, shint.height() * 17 + frameWidth() * 2);
|
||||
header()->resizeSection(0, width / 2);
|
||||
QTreeView::resize(m_preferredSize);
|
||||
}
|
||||
|
||||
@@ -267,7 +268,6 @@ LocatorWidget::LocatorWidget(Locator *qop) :
|
||||
m_mainWindow->installEventFilter(this);
|
||||
|
||||
m_completionList->setModel(m_locatorModel);
|
||||
m_completionList->header()->resizeSection(0, 300);
|
||||
m_completionList->resize();
|
||||
|
||||
m_filterMenu->addAction(m_refreshAction);
|
||||
|
||||
Reference in New Issue
Block a user