Use a non-deprecated enum value for "no key"

This commit is contained in:
Volker Krause 2022-04-24 18:21:10 +02:00
parent 9a34ebbffc
commit 86abf8dbc3

View file

@ -283,8 +283,8 @@ void GlobalShortcutsTest::testComponseKey()
action->setObjectName(QStringLiteral("globalshortcuts-accent")); action->setObjectName(QStringLiteral("globalshortcuts-accent"));
QSignalSpy triggeredSpy(action.get(), &QAction::triggered); QSignalSpy triggeredSpy(action.get(), &QAction::triggered);
QVERIFY(triggeredSpy.isValid()); QVERIFY(triggeredSpy.isValid());
KGlobalAccel::self()->setShortcut(action.get(), QList<QKeySequence>{Qt::UNICODE_ACCEL}, KGlobalAccel::NoAutoloading); KGlobalAccel::self()->setShortcut(action.get(), QList<QKeySequence>{Qt::NoModifier}, KGlobalAccel::NoAutoloading);
input()->registerShortcut(Qt::UNICODE_ACCEL, action.get()); input()->registerShortcut(Qt::NoModifier, action.get());
// press & release ` // press & release `
quint32 timestamp = 0; quint32 timestamp = 0;