QmlDesigner ConnectionViewWidget delete quick fix

Change-Id: I0147a73fb9358a4fd5949308e95ddb1bdd934e3f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2019-12-06 13:58:14 +01:00
parent 0adf810587
commit 9ad731fc9d

View File

@@ -209,7 +209,6 @@ QList<QToolButton *> ConnectionViewWidget::createToolBarWidgets()
buttons << new QToolButton();
buttons.constLast()->setIcon(Utils::Icons::MINUS.icon());
buttons.constLast()->setToolTip(tr("Remove selected binding or connection."));
buttons.constLast()->setShortcut(QKeySequence(Qt::Key_Delete));
connect(buttons.constLast(), &QAbstractButton::clicked, this, &ConnectionViewWidget::removeButtonClicked);
connect(this, &ConnectionViewWidget::setEnabledRemoveButton, buttons.constLast(), &QWidget::setEnabled);