forked from qt-creator/qt-creator
QmlDesigner: Fix text editor widget stretch
Task-number: QDS-10730 Change-Id: I4e46e53032378b0af7b63921eddb5b0b84670dc4 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
@@ -123,7 +123,8 @@ void AbstractEditorDialog::setupUIComponents()
|
||||
m_buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||||
|
||||
m_verticalLayout->addLayout(m_comboBoxLayout);
|
||||
m_verticalLayout->addWidget(m_editorWidget);
|
||||
//editor widget has to stretch the most among the other siblings:
|
||||
m_verticalLayout->addWidget(m_editorWidget, 10);
|
||||
m_verticalLayout->addWidget(m_buttonBox);
|
||||
|
||||
this->resize(660, 240);
|
||||
|
@@ -399,6 +399,16 @@ void ActionEditorDialog::showControls(bool show)
|
||||
m_assignmentSourceItem->setVisible(show);
|
||||
if (m_assignmentSourceProperty)
|
||||
m_assignmentSourceProperty->setVisible(show);
|
||||
|
||||
if (m_stackedLayout)
|
||||
m_stackedLayout->setEnabled(show);
|
||||
if (m_actionLayout)
|
||||
m_actionLayout->setEnabled(show);
|
||||
if (m_assignmentLayout)
|
||||
m_assignmentLayout->setEnabled(show);
|
||||
|
||||
if (m_comboBoxLayout)
|
||||
m_comboBoxLayout->setEnabled(show);
|
||||
}
|
||||
|
||||
void ActionEditorDialog::setMultiline(bool multiline)
|
||||
|
Reference in New Issue
Block a user