forked from qt-creator/qt-creator
QmlDesigner ConnectionViewWidget delete quick fix
Change-Id: I0147a73fb9358a4fd5949308e95ddb1bdd934e3f Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -209,7 +209,6 @@ QList<QToolButton *> ConnectionViewWidget::createToolBarWidgets()
|
|||||||
buttons << new QToolButton();
|
buttons << new QToolButton();
|
||||||
buttons.constLast()->setIcon(Utils::Icons::MINUS.icon());
|
buttons.constLast()->setIcon(Utils::Icons::MINUS.icon());
|
||||||
buttons.constLast()->setToolTip(tr("Remove selected binding or connection."));
|
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(buttons.constLast(), &QAbstractButton::clicked, this, &ConnectionViewWidget::removeButtonClicked);
|
||||||
connect(this, &ConnectionViewWidget::setEnabledRemoveButton, buttons.constLast(), &QWidget::setEnabled);
|
connect(this, &ConnectionViewWidget::setEnabledRemoveButton, buttons.constLast(), &QWidget::setEnabled);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user