mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeui: remove unused KShortcutsEditor::ActionType enums
were not even used in the old implementation Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cf229be24d
commit
378011afe8
2 changed files with 7 additions and 9 deletions
|
@ -107,7 +107,9 @@ void KShortcutsEditor::importConfiguration(KConfigBase *config)
|
|||
void KShortcutsEditor::exportConfiguration(KConfigBase *config) const
|
||||
{
|
||||
Q_ASSERT(config);
|
||||
if (!config) return;
|
||||
if (!config) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (d->actionTypes & KShortcutsEditor::GlobalAction) {
|
||||
KConfigGroup group(config, "Global Shortcuts");
|
||||
|
|
|
@ -62,16 +62,12 @@ class KDEUI_EXPORT KShortcutsEditor : public QWidget
|
|||
Q_OBJECT
|
||||
public:
|
||||
enum ActionType {
|
||||
/// Actions which are triggered by any keypress in a widget which has the action added to it
|
||||
WidgetAction = Qt::WidgetShortcut /*0*/,
|
||||
/// Actions which are triggered by any keypress in a window which has the action added to it or its child widget(s)
|
||||
WindowAction = Qt::WindowShortcut /*1*/,
|
||||
/// Actions which are triggered by any keypress in the application
|
||||
ApplicationAction = Qt::ApplicationShortcut /*2*/,
|
||||
/// Actions which are triggered by any keypress in a widget
|
||||
LocalAction = 0,
|
||||
/// Actions which are triggered by any keypress in the windowing system
|
||||
GlobalAction = 4,
|
||||
GlobalAction = 1,
|
||||
/// All actions
|
||||
AllActions = 0xffffffff
|
||||
AllActions = (LocalAction | GlobalAction)
|
||||
};
|
||||
Q_DECLARE_FLAGS(ActionTypes, ActionType)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue