aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp')
-rw-r--r--src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp b/src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp
index 3e6d838990..9d2b1cb9e0 100644
--- a/src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp
+++ b/src/plugins/qmldesigner/components/bindingeditor/bindingeditordialog.cpp
@@ -79,14 +79,19 @@ BindingEditorDialog::~BindingEditorDialog()
delete m_verticalLayout;
}
-void BindingEditorDialog::showWidget(int x, int y)
+void BindingEditorDialog::showWidget()
{
this->show();
this->raise();
- move(QPoint(x, y));
m_editorWidget->setFocus();
}
+void BindingEditorDialog::showWidget(int x, int y)
+{
+ showWidget();
+ move(QPoint(x, y));
+}
+
QString BindingEditorDialog::editorValue() const
{
if (!m_editorWidget)
@@ -220,7 +225,7 @@ void BindingEditorDialog::setupComboBoxes()
m_comboBoxItem->clear();
m_comboBoxProperty->clear();
- for (auto bind : m_bindings)
+ for (const auto &bind : m_bindings)
m_comboBoxItem->addItem(bind.item);
}