Skip to content
Snippets Groups Projects
Commit b6711f19 authored by dt's avatar dt
Browse files

Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline

parents 3ba192af b11f8492
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,12 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable) ...@@ -196,6 +196,12 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable)
m_methodCombo = new QComboBox; m_methodCombo = new QComboBox;
m_methodCombo->setMinimumContentsLength(22); m_methodCombo->setMinimumContentsLength(22);
m_methodCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); 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(); QTreeView *methodView = new OverviewTreeView();
methodView->header()->hide(); methodView->header()->hide();
methodView->setItemsExpandable(false); methodView->setItemsExpandable(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment