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;