Changeset View
Changeset View
Standalone View
Standalone View
src/kkeysequencewidget.cpp
Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Line(s) | 585 | if (conflictingActions.isEmpty()) { | |||
---|---|---|---|---|---|
586 | // No conflicting shortcuts found. | 586 | // No conflicting shortcuts found. | ||
587 | return false; | 587 | return false; | ||
588 | } | 588 | } | ||
589 | 589 | | |||
590 | if (stealShortcuts(conflictingActions, keySequence)) { | 590 | if (stealShortcuts(conflictingActions, keySequence)) { | ||
591 | stealActions = conflictingActions; | 591 | stealActions = conflictingActions; | ||
592 | // Announce that the user | 592 | // Announce that the user | ||
593 | // agreed | 593 | // agreed | ||
594 | Q_FOREACH (QAction *stealAction, stealActions) { | 594 | for (QAction *stealAction : qAsConst(stealActions)) { | ||
595 | emit q->stealShortcut( | 595 | emit q->stealShortcut( | ||
596 | keySequence, | 596 | keySequence, | ||
597 | stealAction); | 597 | stealAction); | ||
598 | } | 598 | } | ||
599 | return false; | 599 | return false; | ||
600 | } else { | 600 | } else { | ||
601 | return true; | 601 | return true; | ||
602 | } | 602 | } | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |