Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
92556637
Commit
92556637
authored
Jan 19, 2021
by
Alexander Lohnau
💬
Browse files
Add trailing comma to enums
parent
51a15c97
Changes
31
Hide whitespace changes
Inline
Side-by-side
applets/kimpanel/backend/scim/main.cpp
View file @
92556637
...
...
@@ -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
())
...
...
applets/kimpanel/plugin/kimpanelagenttype.h
View file @
92556637
...
...
@@ -31,7 +31,7 @@ struct TextAttribute {
None
,
Decorate
,
Foreground
,
Background
Background
,
};
Type
type
;
int
start
;
...
...
applets/pager/plugin/pagermodel.h
View file @
92556637
...
...
@@ -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
);
...
...
applets/pager/plugin/windowmodel.h
View file @
92556637
...
...
@@ -32,7 +32,7 @@ class WindowModel : public TaskManager::TaskFilterProxyModel
public:
enum
WindowModelRoles
{
StackingOrder
=
Qt
::
UserRole
+
1
StackingOrder
=
Qt
::
UserRole
+
1
,
};
explicit
WindowModel
(
PagerModel
*
parent
);
...
...
applets/taskmanager/plugin/backend.h
View file @
92556637
...
...
@@ -52,7 +52,7 @@ class Backend : public QObject
NewInstance
,
ToggleMinimized
,
ToggleGrouping
,
BringToCurrentDesktop
BringToCurrentDesktop
,
};
Q_ENUM
(
MiddleClickAction
)
...
...
applets/trash/plugin/dirmodel.h
View file @
92556637
...
...
@@ -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
);
...
...
containments/desktop/plugins/folder/foldermodel.h
View file @
92556637
...
...
@@ -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
)
...
...
containments/desktop/plugins/folder/screenmapper.h
View file @
92556637
...
...
@@ -41,7 +41,7 @@ class FOLDERPLUGIN_TESTS_EXPORT ScreenMapper : public QObject
public:
enum
MappingSignalBehavior
{
DelayedSignal
=
0
,
ImmediateSignal
ImmediateSignal
,
};
static
ScreenMapper
*
instance
();
...
...
imports/activitymanager/sortedactivitiesmodel.h
View file @
92556637
...
...
@@ -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
:
...
...
imports/activitymanager/switcherbackend.h
View file @
92556637
...
...
@@ -86,7 +86,7 @@ private:
enum
Direction
{
Next
,
Previous
Previous
,
};
void
switchToActivity
(
Direction
i
);
...
...
kcms/activities/BlacklistedApplicationsModel.h
View file @
92556637
...
...
@@ -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
;
...
...
kcms/activities/PrivacyTab.h
View file @
92556637
...
...
@@ -60,7 +60,7 @@ private:
enum
WhatToRemember
{
AllApplications
=
0
,
SpecificApplications
=
1
,
NoApplications
=
2
NoApplications
=
2
,
};
D_PTR
;
...
...
kcms/autostart/autostartmodel.h
View file @
92556637
...
...
@@ -39,7 +39,7 @@ public:
Enabled
=
Qt
::
UserRole
+
1
,
Source
,
FileName
,
OnlyInPlasma
OnlyInPlasma
,
};
enum
AutostartEntrySource
{
...
...
kcms/dateandtime/dtime.h
View file @
92556637
...
...
@@ -114,7 +114,7 @@ private:
enum
RepaintCache
{
RepaintNone
,
RepaintAll
,
RepaintHands
RepaintHands
,
};
RepaintCache
m_repaintCache
;
QPixmap
m_faceCache
;
...
...
kcms/hardware/joystick/joydevice.h
View file @
92556637
...
...
@@ -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"
...
...
kcms/kded/kcmkded.h
View file @
92556637
...
...
@@ -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
)
...
...
kcms/keyboard/kcmmisc.h
View file @
92556637
...
...
@@ -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
{
...
...
kcms/keyboard/keyboard_config.h
View file @
92556637
...
...
@@ -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
;
...
...
kcms/keyboard/tastenbrett/key.h
View file @
92556637
...
...
@@ -45,7 +45,7 @@ public:
TopLeft
=
1
,
TopRight
=
3
,
BottomLeft
=
0
,
BottomRight
=
2
BottomRight
=
2
,
};
Q_ENUM
(
Level
)
constexpr
static
int
levelCount
=
4
;
...
...
kcms/keys/basemodel.h
View file @
92556637
...
...
@@ -61,7 +61,7 @@ public:
CheckedRole
,
PendingDeletionRole
,
IsDefaultRole
,
SupportsMultipleKeysRole
SupportsMultipleKeysRole
,
};
Q_ENUM
(
Roles
)
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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