Commit c39d7ba5 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Add trailing commas to enums

parent aef85bdc
......@@ -33,7 +33,7 @@ public:
EXISTING_WINDOW,
AND,
OR,
NOT};
NOT,};
};
......
......@@ -30,7 +30,7 @@ class KHotkeysModel : public QAbstractItemModel
NameColumn,
EnabledColumn,
IsGroupColumn,
TypeColumn };
TypeColumn, };
/**
* Default constructor
......
......@@ -125,7 +125,7 @@ class Q_DECL_EXPORT ActionDataBase : public QObject
enum IgnoreParent
{
Ignore,
DontIgnore
DontIgnore,
};
bool isEnabled(IgnoreParent ip = DontIgnore) const;
......
......@@ -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
/**
......
......@@ -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(
......
......@@ -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
};
......
......@@ -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
......
......@@ -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();
......
......@@ -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)
......
......@@ -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 ),
};
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment