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

Add trailing comma to enums

parent 51a15c97
......@@ -268,7 +268,7 @@ public:
SHOW_AUX,
HIDE_AUX,
SHOW_HELP,
SHOW_FACTORY_MENU
SHOW_FACTORY_MENU,
}
;
DBusEvent(SCIM_EVENT_TYPE t, const QVariantList &arglist = QVariantList())
......
......@@ -31,7 +31,7 @@ struct TextAttribute {
None,
Decorate,
Foreground,
Background
Background,
};
Type type;
int start;
......
......@@ -56,11 +56,11 @@ class PagerModel : public QAbstractListModel, public QQmlParserStatus
public:
enum PagerType {
VirtualDesktops = 0,
Activities
Activities,
};
enum AdditionalRoles {
TasksModel = Qt::UserRole + 1
TasksModel = Qt::UserRole + 1,
};
explicit PagerModel(QObject *parent = nullptr);
......
......@@ -32,7 +32,7 @@ class WindowModel : public TaskManager::TaskFilterProxyModel
public:
enum WindowModelRoles {
StackingOrder = Qt::UserRole + 1
StackingOrder = Qt::UserRole + 1,
};
explicit WindowModel(PagerModel *parent);
......
......@@ -52,7 +52,7 @@ class Backend : public QObject
NewInstance,
ToggleMinimized,
ToggleGrouping,
BringToCurrentDesktop
BringToCurrentDesktop,
};
Q_ENUM(MiddleClickAction)
......
......@@ -52,7 +52,7 @@ public:
enum Roles {
UrlRole = Qt::UserRole + 1,
MimeTypeRole = Qt::UserRole + 2,
Thumbnail = Qt::UserRole + 3
Thumbnail = Qt::UserRole + 3,
};
explicit DirModel(QObject* parent=nullptr);
......
......@@ -113,20 +113,20 @@ class FOLDERPLUGIN_TESTS_EXPORT FolderModel : public QSortFilterProxyModel, publ
LinkDestinationUrl,
SizeRole,
TypeRole,
FileNameRole
FileNameRole,
};
enum FilterMode {
NoFilter = 0,
FilterShowMatches,
FilterHideMatches
FilterHideMatches,
};
enum Status {
None,
Ready,
Listing,
Canceled
Canceled,
};
Q_ENUM(Status)
......
......@@ -41,7 +41,7 @@ class FOLDERPLUGIN_TESTS_EXPORT ScreenMapper : public QObject
public:
enum MappingSignalBehavior {
DelayedSignal = 0,
ImmediateSignal
ImmediateSignal,
};
static ScreenMapper *instance();
......
......@@ -56,7 +56,7 @@ protected:
LastTimeUsed = KActivities::ActivitiesModel::UserRole,
LastTimeUsedString = KActivities::ActivitiesModel::UserRole + 1,
WindowCount = KActivities::ActivitiesModel::UserRole + 2,
HasWindows = KActivities::ActivitiesModel::UserRole + 3
HasWindows = KActivities::ActivitiesModel::UserRole + 3,
};
public Q_SLOTS:
......
......@@ -86,7 +86,7 @@ private:
enum Direction {
Next,
Previous
Previous,
};
void switchToActivity(Direction i);
......
......@@ -39,7 +39,7 @@ public:
enum Roles {
ApplicationIdRole = Qt::UserRole + 1,
BlockedApplicationRole
BlockedApplicationRole,
};
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
......
......@@ -60,7 +60,7 @@ private:
enum WhatToRemember {
AllApplications = 0,
SpecificApplications = 1,
NoApplications = 2
NoApplications = 2,
};
D_PTR;
......
......@@ -39,7 +39,7 @@ public:
Enabled = Qt::UserRole + 1,
Source,
FileName,
OnlyInPlasma
OnlyInPlasma,
};
enum AutostartEntrySource {
......
......@@ -114,7 +114,7 @@ private:
enum RepaintCache {
RepaintNone,
RepaintAll,
RepaintHands
RepaintHands,
};
RepaintCache m_repaintCache;
QPixmap m_faceCache;
......
......@@ -52,13 +52,13 @@ class JoyDevice
ERR_GET_CORR,
ERR_RESTORE_CORR,
ERR_INIT_CAL,
ERR_APPLY_CAL
ERR_APPLY_CAL,
};
enum EventType
{
BUTTON,
AXIS
AXIS,
};
// devicefile to use, e.g. "/dev/js0"
......
......@@ -54,14 +54,14 @@ public:
enum ModuleType {
UnknownType = -1,
AutostartType,
OnDemandType
OnDemandType,
};
Q_ENUM(ModuleType)
enum ModuleStatus {
UnknownStatus = -1,
NotRunning,
Running
Running,
};
Q_ENUM(ModuleStatus)
......
......@@ -37,7 +37,7 @@ const double DEFAULT_REPEAT_RATE = 25.0;
enum KeyBehaviour {
AccentMenu = 0,
RepeatKey = 1,
DoNothing = 2
DoNothing = 2,
};
const QMap<KeyBehaviour,QString> keybehaviourNames = {
......@@ -47,7 +47,7 @@ const QMap<KeyBehaviour,QString> keybehaviourNames = {
};
enum TriState {
STATE_ON = 0, STATE_OFF = 1, STATE_UNCHANGED = 2
STATE_ON = 0, STATE_OFF = 1, STATE_UNCHANGED = 2,
};
class TriStateHelper {
......
......@@ -41,13 +41,13 @@ public:
SWITCH_POLICY_GLOBAL = 0,
SWITCH_POLICY_DESKTOP = 1,
SWITCH_POLICY_APPLICATION = 2,
SWITCH_POLICY_WINDOW = 3
SWITCH_POLICY_WINDOW = 3,
};
enum IndicatorType {
SHOW_LABEL = 0,
SHOW_FLAG = 1,
SHOW_LABEL_ON_FLAG = 2
SHOW_LABEL_ON_FLAG = 2,
};
QString keyboardModel;
......
......@@ -45,7 +45,7 @@ public:
TopLeft = 1,
TopRight = 3,
BottomLeft = 0,
BottomRight = 2
BottomRight = 2,
};
Q_ENUM(Level)
constexpr static int levelCount = 4;
......
......@@ -61,7 +61,7 @@ public:
CheckedRole,
PendingDeletionRole,
IsDefaultRole,
SupportsMultipleKeysRole
SupportsMultipleKeysRole,
};
Q_ENUM(Roles)
......
......@@ -39,7 +39,7 @@ public:
enum Roles {
PluginNameRole = Qt::UserRole +1,
ScreenshotRole,
DescriptionRole
DescriptionRole,
};
KCMSplashScreen(QObject* parent, const QVariantList& args);
......
......@@ -25,7 +25,7 @@ class X11EvdevBackend;
enum class Handed {
Right = 0,
Left = 1,
NotSupported = -1
NotSupported = -1,
};
struct EvdevSettings
......
......@@ -28,7 +28,7 @@
enum class InputBackendMode {
KWinWayland = 0,
XLibinput = 1,
XEvdev = 2
XEvdev = 2,
};
class InputBackend : public QObject
......
......@@ -68,13 +68,13 @@ public:
IsDefaultRole,
EventIdRole,
ActionsRole
ActionsRole,
};
Q_ENUM(Roles)
enum Type {
ApplicationType,
ServiceType
ServiceType,
};
Q_ENUM(Type)
......
......@@ -41,7 +41,7 @@ class SearchConfigModule : public KCModule
public:
enum Roles {
RunnersRole = Qt::UserRole + 1,
DescriptionRole
DescriptionRole,
};
SearchConfigModule(QWidget* parent, const QVariantList& args);
......
......@@ -188,7 +188,7 @@ SynapticsTouchpad::SynapticsTouchpad(Display *display, int deviceId): XlibTouchp
TouchpadThreeFingerDetect,
TouchpadPressureDetect,
TouchpadPalmDetect,
TouchpadCapsCount
TouchpadCapsCount,
};
QVector<bool> cap(TouchpadCapsCount, false);
......
......@@ -30,7 +30,7 @@
enum ParaType {
PT_INT,
PT_BOOL,
PT_DOUBLE
PT_DOUBLE,
};
struct Parameter {
......
......@@ -28,7 +28,7 @@ enum class TouchpadInputBackendMode {
Unset = 0,
WaylandLibinput = 1,
XLibinput = 2,
XSynaptics = 3
XSynaptics = 3,
};
class Q_DECL_EXPORT TouchpadBackend : public QObject
......@@ -59,7 +59,7 @@ public:
virtual int touchpadCount() const {return 0;}
enum TouchpadOffState {
TouchpadEnabled, TouchpadTapAndScrollDisabled, TouchpadFullyDisabled
TouchpadEnabled, TouchpadTapAndScrollDisabled, TouchpadFullyDisabled,
};
virtual void setTouchpadOff(TouchpadOffState) {}
virtual TouchpadOffState getTouchpadOff() {return TouchpadFullyDisabled;}
......
......@@ -42,7 +42,7 @@ public:
PermissionDenied,
Failed,
Unknown,
UserFacing
UserFacing,
};
private:
......
......@@ -39,12 +39,12 @@ public:
enum DeviceType {
Attached,
Detatched
Detatched,
};
enum {
UdiRole = Qt::UserRole,
TypeRole
TypeRole,
};
Qt::ItemFlags flags(const QModelIndex &index) const override;
......
......@@ -31,7 +31,7 @@ class AutomounterSettings : public AutomounterSettingsBase {
using AutomounterSettingsBase::AutomounterSettingsBase;
enum AutomountType {
Login,
Attach
Attach,
};
KConfigGroup deviceSettings(const QString &udi);
QStringList knownDevices();
......
Markdown is supported
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