Commit 178d1228 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen

QmlDesigner: Fix combo boxes in connection editor

Change-Id: I6b7cab45268d726edea64d502cf16b8c6207a05a
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 90656975
......@@ -173,7 +173,6 @@ QWidget *BindingDelegate::createEditor(QWidget *parent, const QStyleOptionViewIt
connect(bindingComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, [=]() {
auto delegate = const_cast<BindingDelegate*>(this);
emit delegate->commitData(bindingComboBox);
emit delegate->closeEditor(bindingComboBox);
});
return widget;
......@@ -237,7 +236,6 @@ QWidget *DynamicPropertiesDelegate::createEditor(QWidget *parent, const QStyleOp
connect(dynamicPropertiesComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, [=]() {
auto delegate = const_cast<DynamicPropertiesDelegate*>(this);
emit delegate->commitData(dynamicPropertiesComboBox);
emit delegate->closeEditor(dynamicPropertiesComboBox);
});
//dynamicPropertiesComboBox->addItem(QLatin1String("alias"));
......@@ -332,7 +330,6 @@ QWidget *ConnectionDelegate::createEditor(QWidget *parent, const QStyleOptionVie
connect(connectionComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, [=]() {
auto delegate = const_cast<ConnectionDelegate*>(this);
emit delegate->commitData(connectionComboBox);
emit delegate->closeEditor(connectionComboBox);
});
return widget;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment