Made the file overview combo box expand

The overview combo in the toolbar above the editor traditionally liked
to be rather small. Now it will prefer to expand.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-17 11:54:47 +01:00
parent 9cf4074504
commit b11f84925a

View File

@@ -196,6 +196,12 @@ 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();
policy.setHorizontalPolicy(QSizePolicy::Expanding);
m_methodCombo->setSizePolicy(policy);
QTreeView *methodView = new OverviewTreeView();
methodView->header()->hide();
methodView->setItemsExpandable(false);