Fixed the alignment of the line/column number label

This depended on a stretch that was removed. Instead, make the stretch
factor of the stretch 0 and make sure that the method boxes used by the
CppEditor and ScriptEditor take all its space.

Reviewed-by: con
This commit is contained in:
Thorbjørn Lindeijer
2009-06-16 13:42:33 +02:00
parent b76ebd66e0
commit aa2836f1dc
3 changed files with 7 additions and 3 deletions

View File

@@ -275,7 +275,8 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable)
QToolBar *toolBar = editable->toolBar();
QList<QAction*> actions = toolBar->actions();
toolBar->insertWidget(actions.first(), m_methodCombo);
QWidget *w = toolBar->widgetForAction(actions.first());
static_cast<QHBoxLayout*>(w->layout())->insertWidget(0, m_methodCombo, 1);
}
int CPPEditor::previousBlockState(QTextBlock block) const