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>
This commit is contained in:
Lorn Potter
2009-05-29 04:39:23 +10:00
parent 3afaf008de
commit 55e7f65533
2 changed files with 1 additions and 3 deletions

View File

@@ -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();

View File

@@ -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);