diff --git a/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp b/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp index 8ee7ef1b9ed..35b9c501745 100644 --- a/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp +++ b/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp @@ -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); diff --git a/src/plugins/qmldesigner/components/bindingeditor/actioneditordialog.cpp b/src/plugins/qmldesigner/components/bindingeditor/actioneditordialog.cpp index b5bb15c30cf..86824ac2656 100644 --- a/src/plugins/qmldesigner/components/bindingeditor/actioneditordialog.cpp +++ b/src/plugins/qmldesigner/components/bindingeditor/actioneditordialog.cpp @@ -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)