From 7767f551f98849a90e9f64f9e5440f5dd4c4597c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 23 Aug 2016 14:12:42 +0300 Subject: [PATCH] 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 Reviewed-by: Tobias Hunger --- src/plugins/coreplugin/locator/locatorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/locator/locatorwidget.cpp b/src/plugins/coreplugin/locator/locatorwidget.cpp index 924d834762f..870a6ffaabd 100644 --- a/src/plugins/coreplugin/locator/locatorwidget.cpp +++ b/src/plugins/coreplugin/locator/locatorwidget.cpp @@ -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);