Less QToolBars in editor tool bar.

This commit is contained in:
con
2009-07-15 16:23:07 +02:00
parent 5e1a24f75b
commit baaf7b1d62
22 changed files with 55 additions and 51 deletions

View File

@@ -640,7 +640,7 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable)
connect(m_semanticHighlighter, SIGNAL(changed(SemanticInfo)),
this, SLOT(updateSemanticInfo(SemanticInfo)));
QToolBar *toolBar = editable->toolBar();
QToolBar *toolBar = static_cast<QToolBar*>(editable->toolBar());
QList<QAction*> actions = toolBar->actions();
QWidget *w = toolBar->widgetForAction(actions.first());
static_cast<QHBoxLayout*>(w->layout())->insertWidget(0, m_methodCombo, 1);