From 55e7f65533b25cf57eba815bce79d29de98def9f Mon Sep 17 00:00:00 2001
From: Lorn Potter <lorn.potter@nokia.com>
Date: Fri, 29 May 2009 04:39:23 +1000
Subject: [PATCH] Fixes:   make method combo take up more space on the toolbar,
 so long class and method names can be seen.

Task:     <task number>
Details:  <additional information>
---
 src/plugins/cppeditor/cppeditor.cpp       | 1 -
 src/plugins/texteditor/basetexteditor.cpp | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index b47bbcce3b0..f7d5460b7d8 100644
--- a/src/plugins/cppeditor/cppeditor.cpp
+++ b/src/plugins/cppeditor/cppeditor.cpp
@@ -237,7 +237,6 @@ 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();
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 310b0374a18..19590a5946e 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -4047,8 +4047,7 @@ BaseTextEditorEditable::BaseTextEditorEditable(BaseTextEditor *editor)
     QHBoxLayout *l = new QHBoxLayout;
     QWidget *w = new QWidget;
     l->setMargin(0);
-    l->setContentsMargins(0, 0, 5, 0);
-    l->addStretch(1);
+    l->setContentsMargins(5, 0, 5, 0);
     l->addWidget(m_cursorPositionLabel);
     w->setLayout(l);
 
-- 
GitLab