From bce76d2e73a462de673d18dbf6d94da0c592bf08 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Thu, 4 Feb 2021 14:06:34 +0200 Subject: Less implicit cast from ASCII NO_CHANGELOG --- autotests/kstandardshortcuttest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autotests/kstandardshortcuttest.cpp') diff --git a/autotests/kstandardshortcuttest.cpp b/autotests/kstandardshortcuttest.cpp index 69e234ab..1b7f88ff 100644 --- a/autotests/kstandardshortcuttest.cpp +++ b/autotests/kstandardshortcuttest.cpp @@ -49,8 +49,8 @@ void KStandardShortcutTest::testShortcut() void KStandardShortcutTest::testFindStdAccel() { - QCOMPARE(KStandardShortcut::find(QString("Ctrl+F")), KStandardShortcut::Find); - QCOMPARE(KStandardShortcut::find(QString("Ctrl+Shift+Alt+G")), KStandardShortcut::AccelNone); + QCOMPARE(KStandardShortcut::find(QKeySequence(Qt::CTRL | Qt::Key_F)), KStandardShortcut::Find); + QCOMPARE(KStandardShortcut::find(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::ALT | Qt::Key_G)), KStandardShortcut::AccelNone); } void KStandardShortcutTest::testFindByName() -- cgit v1.2.1