From b11f84925afe55e8ad9b7d86a094527520b46509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Wed, 17 Dec 2008 11:54:47 +0100 Subject: [PATCH] Made the file overview combo box expand The overview combo in the toolbar above the editor traditionally liked to be rather small. Now it will prefer to expand. --- src/plugins/cppeditor/cppeditor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 1feece042db..ef13ed5de7f 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -196,6 +196,12 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable) m_methodCombo = new QComboBox; m_methodCombo->setMinimumContentsLength(22); m_methodCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); + + // Make the combo box prefer to expand + QSizePolicy policy = m_methodCombo->sizePolicy(); + policy.setHorizontalPolicy(QSizePolicy::Expanding); + m_methodCombo->setSizePolicy(policy); + QTreeView *methodView = new OverviewTreeView(); methodView->header()->hide(); methodView->setItemsExpandable(false);