diff options
-rw-r--r-- | autotests/kstandardshortcuttest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autotests/kstandardshortcuttest.cpp b/autotests/kstandardshortcuttest.cpp index 8c4df027..e2447037 100644 --- a/autotests/kstandardshortcuttest.cpp +++ b/autotests/kstandardshortcuttest.cpp @@ -47,6 +47,12 @@ void KStandardShortcutTest::testFindStdAccel() void KStandardShortcutTest::testFindByName() { for (int i = KStandardShortcut::AccelNone + 1; i < KStandardShortcut::StandardShortcutCount; ++i) { +#if !KCONFIGGUI_BUILD_DEPRECATED_SINCE(5, 39) + // building without deprecated enumerator, so have to skip hole in values list + if (i == KStandardShortcut::SaveOptions_DEPRECATED_DO_NOT_USE) { + continue; + } +#endif const auto id = static_cast<KStandardShortcut::StandardShortcut>(i); QCOMPARE(id, KStandardShortcut::findByName(KStandardShortcut::name(id))); } |