From 86abf8dbc30a6ef09771cbbeb014df97eca01046 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 24 Apr 2022 18:21:10 +0200 Subject: [PATCH] Use a non-deprecated enum value for "no key" --- autotests/integration/globalshortcuts_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/integration/globalshortcuts_test.cpp b/autotests/integration/globalshortcuts_test.cpp index c718934b51..a1fa12cfc3 100644 --- a/autotests/integration/globalshortcuts_test.cpp +++ b/autotests/integration/globalshortcuts_test.cpp @@ -283,8 +283,8 @@ void GlobalShortcutsTest::testComponseKey() action->setObjectName(QStringLiteral("globalshortcuts-accent")); QSignalSpy triggeredSpy(action.get(), &QAction::triggered); QVERIFY(triggeredSpy.isValid()); - KGlobalAccel::self()->setShortcut(action.get(), QList{Qt::UNICODE_ACCEL}, KGlobalAccel::NoAutoloading); - input()->registerShortcut(Qt::UNICODE_ACCEL, action.get()); + KGlobalAccel::self()->setShortcut(action.get(), QList{Qt::NoModifier}, KGlobalAccel::NoAutoloading); + input()->registerShortcut(Qt::NoModifier, action.get()); // press & release ` quint32 timestamp = 0;