From 442907bc13f803635df0f65e57f3a560143b2b5f Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 6 Sep 2021 16:49:56 +0200 Subject: [PATCH] QmlDesigner: Use Qt::Key_Backspace instaed of QKeySequence::Backspace Task-number: QDS-5011 Change-Id: If3e0719389e47110b8885ab709568a8daaf0ec1d Reviewed-by: Knud Dollereder Reviewed-by: Qt CI Bot --- src/plugins/qmldesigner/shortcutmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/shortcutmanager.cpp b/src/plugins/qmldesigner/shortcutmanager.cpp index 617c1775aba..25d1c27c471 100644 --- a/src/plugins/qmldesigner/shortcutmanager.cpp +++ b/src/plugins/qmldesigner/shortcutmanager.cpp @@ -154,7 +154,7 @@ void ShortCutManager::registerActions(const Core::Context &qmlDesignerMainContex m_deleteAction.setIcon(QIcon::fromTheme(QLatin1String("edit-cut"), Utils::Icons::EDIT_CLEAR_TOOLBAR.icon())); command = Core::ActionManager::registerAction(&m_deleteAction, QmlDesigner::Constants::C_DELETE, qmlDesignerMainContext); - command->setDefaultKeySequences({QKeySequence::Delete, QKeySequence::Backspace}); + command->setDefaultKeySequences({Qt::Key_Backspace, Qt::Key_Delete}); command->setAttribute(Core::Command::CA_Hide); // don't show delete in other modes if (!Utils::HostOsInfo::isMacHost())