Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KHotkeys
Commits
c39d7ba5
Commit
c39d7ba5
authored
Jan 21, 2021
by
Alexander Lohnau
💬
Browse files
Add trailing commas to enums
parent
aef85bdc
Changes
10
Hide whitespace changes
Inline
Side-by-side
kcm_hotkeys/conditions/condition_type_menu.h
View file @
c39d7ba5
...
...
@@ -33,7 +33,7 @@ public:
EXISTING_WINDOW
,
AND
,
OR
,
NOT
};
NOT
,
};
};
...
...
kcm_hotkeys/hotkeys_model.h
View file @
c39d7ba5
...
...
@@ -30,7 +30,7 @@ class KHotkeysModel : public QAbstractItemModel
NameColumn
,
EnabledColumn
,
IsGroupColumn
,
TypeColumn
};
TypeColumn
,
};
/**
* Default constructor
...
...
libkhotkeysprivate/action_data/action_data_base.h
View file @
c39d7ba5
...
...
@@ -125,7 +125,7 @@ class Q_DECL_EXPORT ActionDataBase : public QObject
enum
IgnoreParent
{
Ignore
,
DontIgnore
DontIgnore
,
};
bool
isEnabled
(
IgnoreParent
ip
=
DontIgnore
)
const
;
...
...
libkhotkeysprivate/action_data/action_data_group.h
View file @
c39d7ba5
...
...
@@ -35,7 +35,7 @@ class Q_DECL_EXPORT ActionDataGroup
SYSTEM_NONE
,
//!< TODO
SYSTEM_MENUENTRIES
,
//!< Shortcuts for menu entries.
SYSTEM_ROOT
,
//!< TODO
/* last one*/
SYSTEM_MAX
//!< End of enum marker
/* last one*/
SYSTEM_MAX
,
//!< End of enum marker
};
// don't remove entries
/**
...
...
libkhotkeysprivate/actions/actions.h
View file @
c39d7ba5
...
...
@@ -51,7 +51,7 @@ class Q_DECL_EXPORT Action
KeyboardInputActionType
=
0x08
,
//!< @see KeyboardInputAction
MenuEntryActionType
=
0x10
,
//!< @see MenuEntryAction
ActionListType
=
0x11
,
//!< @see ActionList
AllTypes
=
0xEF
//!< All types. For convenience
AllTypes
=
0xEF
,
//!< All types. For convenience
};
Q_DECLARE_FLAGS
(
ActionTypes
,
ActionType
)
...
...
@@ -285,7 +285,7 @@ class Q_DECL_EXPORT KeyboardInputAction
{
ActiveWindow
,
SpecificWindow
,
ActionWindow
ActionWindow
,
};
KeyboardInputAction
(
...
...
libkhotkeysprivate/settings.h
View file @
c39d7ba5
...
...
@@ -24,14 +24,14 @@ enum ImportType
{
ImportNone
,
//!< no import is done
ImportAsk
,
//!< if already imported before, ask (called from GUI)
ImportSilent
//!< if already imported before, ignore (called from the update script)
ImportSilent
,
//!< if already imported before, ignore (called from the update script)
};
enum
ActionState
{
Retain
,
//!< Keep the current state
Enabled
,
//!< Enable all actions
Disabled
//!< Disable all actions
Disabled
,
//!< Disable all actions
};
...
...
libkhotkeysprivate/shortcuts_handler.h
View file @
c39d7ba5
...
...
@@ -29,7 +29,7 @@ public:
enum
HandlerType
{
Active
,
//!< Create real actions
Configuration
};
//!< Create configuration actions ( not active )
Configuration
,
};
//!< Create configuration actions ( not active )
/**
* Default constructor
...
...
libkhotkeysprivate/triggers/gestures.h
View file @
c39d7ba5
...
...
@@ -54,7 +54,7 @@ class Q_DECL_EXPORT Stroke
{
public:
// largest number of points allowed to be sampled
enum
{
MAX_POINTS
=
5000
};
enum
{
MAX_POINTS
=
5000
,
};
Stroke
();
~
Stroke
();
...
...
libkhotkeysprivate/triggers/triggers.h
View file @
c39d7ba5
...
...
@@ -48,7 +48,7 @@ class Q_DECL_EXPORT Trigger
ShortcutTriggerType
=
0x02
,
//!< @see ShortcutTrigger
WindowTriggerType
=
0x04
,
//!< @see WindowTrigger
TriggerListType
=
0x08
,
//!< @see Trigger_list
AllTypes
=
0xFF
//!< All types. For convenience.
AllTypes
=
0xFF
,
//!< All types. For convenience.
};
Q_DECLARE_FLAGS
(
TriggerTypes
,
TriggerType
)
...
...
@@ -224,7 +224,7 @@ class Q_DECL_EXPORT WindowTrigger : public QObject, public Trigger
WINDOW_APPEARS
=
(
1
<<
0
),
//!< The window is opened
WINDOW_DISAPPEARS
=
(
1
<<
1
),
//!< The window is closed
WINDOW_ACTIVATES
=
(
1
<<
2
),
//!< The window gets the focus
WINDOW_DEACTIVATES
=
(
1
<<
3
)
//!< The window loses the focus
WINDOW_DEACTIVATES
=
(
1
<<
3
)
,
//!< The window loses the focus
};
Q_DECLARE_FLAGS
(
WindowEvents
,
window_action_t
)
...
...
libkhotkeysprivate/windows_helper/window_selection_rules.h
View file @
c39d7ba5
...
...
@@ -32,7 +32,7 @@ class Q_DECL_EXPORT Windowdef_simple : public Windowdef
REGEXP
,
CONTAINS_NOT
,
IS_NOT
,
REGEXP_NOT
REGEXP_NOT
,
};
/**
...
...
@@ -43,7 +43,7 @@ class Q_DECL_EXPORT Windowdef_simple : public Windowdef
WINDOW_TYPE_NORMAL
=
(
1
<<
NET
::
Normal
),
WINDOW_TYPE_DESKTOP
=
(
1
<<
NET
::
Desktop
),
WINDOW_TYPE_DOCK
=
(
1
<<
NET
::
Dock
),
WINDOW_TYPE_DIALOG
=
(
1
<<
NET
::
Dialog
)
WINDOW_TYPE_DIALOG
=
(
1
<<
NET
::
Dialog
)
,
};
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment