Changeset View
Changeset View
Standalone View
Standalone View
src/kactionconflictdetector.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 45 | if (qobject_cast<QAction *>(watched) && (event->type() == QEvent::Shortcut)) { | |||
---|---|---|---|---|---|
46 | QShortcutEvent *se = static_cast<QShortcutEvent *>(event); | 46 | QShortcutEvent *se = static_cast<QShortcutEvent *>(event); | ||
47 | if (se->isAmbiguous()) { | 47 | if (se->isAmbiguous()) { | ||
48 | KMessageBox::information( | 48 | KMessageBox::information( | ||
49 | nullptr, // No widget to be seen around here | 49 | nullptr, // No widget to be seen around here | ||
50 | i18n("The key sequence '%1' is ambiguous. Use 'Configure Shortcuts'\n" | 50 | i18n("The key sequence '%1' is ambiguous. Use 'Configure Shortcuts'\n" | ||
51 | "from the 'Settings' menu to solve the ambiguity.\n" | 51 | "from the 'Settings' menu to solve the ambiguity.\n" | ||
52 | "No action will be triggered.", | 52 | "No action will be triggered.", | ||
53 | se->key().toString(QKeySequence::NativeText)), | 53 | se->key().toString(QKeySequence::NativeText)), | ||
54 | i18n("Ambiguous shortcut detected")); | 54 | i18nc("@title:window", "Ambiguous shortcut detected")); | ||
55 | return true; | 55 | return true; | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | return QObject::eventFilter(watched, event); | 59 | return QObject::eventFilter(watched, event); | ||
60 | } | 60 | } | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
Show All 9 Lines |