Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/input/config/kis_action_shortcuts_model.cpp
Context not available. | |||||
24 | #include <KLocalizedString> | 24 | #include <KLocalizedString> | ||
---|---|---|---|---|---|
25 | #include <QMetaClassInfo> | 25 | #include <QMetaClassInfo> | ||
26 | #include <QKeySequence> | 26 | #include <QKeySequence> | ||
27 | #include <QMessageBox> | ||||
27 | 28 | | |||
28 | #include "kis_icon_utils.h" | 29 | #include "kis_icon_utils.h" | ||
29 | 30 | | |||
Context not available. | |||||
339 | KisShortcutConfiguration *s = d->shortcuts.at(i); | 340 | KisShortcutConfiguration *s = d->shortcuts.at(i); | ||
340 | 341 | | |||
341 | if (!d->action->isShortcutRequired(s->mode()) && d->shortcutModeCount(s->mode()) < 2) { | 342 | if (!d->action->isShortcutRequired(s->mode()) && d->shortcutModeCount(s->mode()) < 2) { | ||
343 | QMessageBox shortcutMessage; | ||||
344 | shortcutMessage.setText(i18n("Deleting last shortcut for this action!")); | ||||
345 | shortcutMessage.setInformativeText(i18n("It is not allowed to erase some default shortcuts. Modify it instead.")); | ||||
346 | shortcutMessage.exec(); | ||||
342 | continue; | 347 | continue; | ||
343 | } | 348 | } | ||
344 | 349 | | |||
Context not available. |