forked from qt-creator/qt-creator
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:
@@ -237,7 +237,6 @@ 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);
|
|
||||||
|
|
||||||
// Make the combo box prefer to expand
|
// Make the combo box prefer to expand
|
||||||
QSizePolicy policy = m_methodCombo->sizePolicy();
|
QSizePolicy policy = m_methodCombo->sizePolicy();
|
||||||
|
|||||||
@@ -4047,8 +4047,7 @@ BaseTextEditorEditable::BaseTextEditorEditable(BaseTextEditor *editor)
|
|||||||
QHBoxLayout *l = new QHBoxLayout;
|
QHBoxLayout *l = new QHBoxLayout;
|
||||||
QWidget *w = new QWidget;
|
QWidget *w = new QWidget;
|
||||||
l->setMargin(0);
|
l->setMargin(0);
|
||||||
l->setContentsMargins(0, 0, 5, 0);
|
l->setContentsMargins(5, 0, 5, 0);
|
||||||
l->addStretch(1);
|
|
||||||
l->addWidget(m_cursorPositionLabel);
|
l->addWidget(m_cursorPositionLabel);
|
||||||
w->setLayout(l);
|
w->setLayout(l);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user