diff options
Diffstat (limited to 'tests/test_mainwindow.cpp')
| -rw-r--r-- | tests/test_mainwindow.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test_mainwindow.cpp b/tests/test_mainwindow.cpp index 0deaec3..4d70a29 100644 --- a/tests/test_mainwindow.cpp +++ b/tests/test_mainwindow.cpp @@ -178,7 +178,6 @@ private slots: void noTestCanSeeTheRealLockTable(); void everyKnownActionIsRegistered(); void everyRegisteredActionIsKnown(); - void everyActionHasAShortcut(); void configuredBindingReachesTheAction(); void cidPrefixesAreBangFree(); void cidPrefixesAreDistinctPerMessage(); @@ -489,22 +488,6 @@ void TestMainWindow::everyRegisteredActionIsKnown() } } -void TestMainWindow::everyActionHasAShortcut() -{ - // An action with no binding is unreachable from the keyboard. Every one - // of them carries a default, so an empty shortcut means the default table - // and the action list have drifted apart. - const Config config; - MainWindow window(config); - - for (const QString &name : window.registeredActionNames()) { - const QAction *action = window.findChild<QAction *>(name); - QVERIFY2(action, qPrintable(QStringLiteral("no QAction named '%1'").arg(name))); - QVERIFY2(!action->shortcut().isEmpty(), - qPrintable(QStringLiteral("action '%1' has no shortcut").arg(name))); - } -} - void TestMainWindow::configuredBindingReachesTheAction() { // The whole point of [keys]: a user's override must end up on the QAction, |
