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:
Aleksei German
2023-09-21 11:17:19 +02:00
parent bbd80f712e
commit 79a41ec7a9
2 changed files with 12 additions and 1 deletions

View File

@@ -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);

View File

@@ -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)