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
PIM
KDE PIM Add-ons
Commits
e5bfcf7a
Commit
e5bfcf7a
authored
Jan 27, 2021
by
Alexander Lohnau
💬
Committed by
Laurent Montel
Jan 28, 2021
Browse files
Add trailing comma to enums
parent
6a9380f0
Changes
30
Hide whitespace changes
Inline
Side-by-side
kaddressbook/importexportplugins/csv/import/csvimportdialog.cpp
View file @
e5bfcf7a
...
...
@@ -42,7 +42,13 @@
#include <QUuid>
#include <QVBoxLayout>
enum
{
Local
=
0
,
Latin1
=
1
,
Uni
=
2
,
MSBug
=
3
,
Codec
=
4
};
enum
{
Local
=
0
,
Latin1
=
1
,
Uni
=
2
,
MSBug
=
3
,
Codec
=
4
,
};
class
ContactFieldComboBox
:
public
QComboBox
{
...
...
kaddressbook/importexportplugins/csv/import/qcsvreader.cpp
View file @
e5bfcf7a
...
...
@@ -72,7 +72,13 @@ QCsvReader::~QCsvReader()
bool
QCsvReader
::
read
(
QIODevice
*
device
)
{
enum
State
{
StartLine
,
QuotedField
,
QuotedFieldEnd
,
NormalField
,
EmptyField
};
enum
State
{
StartLine
,
QuotedField
,
QuotedFieldEnd
,
NormalField
,
EmptyField
,
};
int
row
,
column
;
...
...
kaddressbook/importexportplugins/vcards/engine/vcardexportselectionwidget.h
View file @
e5bfcf7a
...
...
@@ -16,7 +16,15 @@ class VCardExportSelectionWidget : public QWidget
public:
explicit
VCardExportSelectionWidget
(
QWidget
*
parent
=
nullptr
);
~
VCardExportSelectionWidget
()
override
;
enum
ExportField
{
None
=
0
,
Private
=
1
,
Business
=
2
,
Other
=
4
,
Encryption
=
8
,
Picture
=
16
,
DiplayName
=
32
};
enum
ExportField
{
None
=
0
,
Private
=
1
,
Business
=
2
,
Other
=
4
,
Encryption
=
8
,
Picture
=
16
,
DiplayName
=
32
,
};
Q_ENUMS
(
ExportField
)
Q_DECLARE_FLAGS
(
ExportFields
,
ExportField
)
...
...
kaddressbook/importexportplugins/vcards/vcardimportexportplugininterface.h
View file @
e5bfcf7a
...
...
@@ -23,7 +23,11 @@ public:
Q_REQUIRED_RESULT
bool
canImportFileType
(
const
QUrl
&
url
)
override
;
private:
enum
ExportVCardType
{
VCard2_1
=
0
,
VCard3
,
VCard4
};
enum
ExportVCardType
{
VCard2_1
=
0
,
VCard3
,
VCard4
,
};
KContacts
::
Addressee
::
List
parseVCard
(
const
QByteArray
&
data
)
const
;
KContacts
::
Addressee
::
List
filterContacts
(
const
KContacts
::
Addressee
::
List
&
addrList
,
KAddressBookImportExport
::
ExportSelectionWidget
::
ExportFields
exportFieldType
)
const
;
...
...
kaddressbook/plugins/mergelib/job/mergecontacts.h
View file @
e5bfcf7a
...
...
@@ -39,7 +39,7 @@ public:
FreeBusy
=
65536
,
FamilyName
=
131072
,
PartnerName
=
262144
,
Keys
=
524288
Keys
=
524288
,
};
Q_ENUMS
(
ConflictInformation
)
Q_DECLARE_FLAGS
(
ConflictInformations
,
ConflictInformation
)
...
...
kaddressbook/plugins/mergelib/widgets/mergecontacterrorlabel.h
View file @
e5bfcf7a
...
...
@@ -15,7 +15,11 @@ class MergeContactErrorLabel : public QLabel
{
Q_OBJECT
public:
enum
ErrorType
{
NotEnoughContactsSelected
=
0
,
NoContactDuplicatesFound
,
NoContactSelected
};
enum
ErrorType
{
NotEnoughContactsSelected
=
0
,
NoContactDuplicatesFound
,
NoContactSelected
,
};
explicit
MergeContactErrorLabel
(
MergeContactErrorLabel
::
ErrorType
type
,
QWidget
*
parent
=
nullptr
);
~
MergeContactErrorLabel
()
override
;
};
...
...
kmail/editorplugins/changecase/changecaseplugineditorinterface.h
View file @
e5bfcf7a
...
...
@@ -29,7 +29,13 @@ private:
void
upperCase
();
void
lowerCase
();
void
reverseCase
();
enum
ChangeCaseType
{
Unknown
=
-
1
,
UpperCase
=
0
,
LowerCase
,
SentenseCase
,
ReverseCase
};
enum
ChangeCaseType
{
Unknown
=
-
1
,
UpperCase
=
0
,
LowerCase
,
SentenseCase
,
ReverseCase
,
};
ChangeCaseType
mType
=
Unknown
;
};
...
...
kmail/editorplugins/quicktext/quicktextwidget.h
View file @
e5bfcf7a
...
...
@@ -29,7 +29,13 @@ public:
void
exportQuickText
();
private:
enum
class
EditMode
{
AddSnippet
,
EditSnippet
,
AddGroup
,
EditGroup
,
Unknown
};
enum
class
EditMode
{
AddSnippet
,
EditSnippet
,
AddGroup
,
EditGroup
,
Unknown
,
};
void
addSnippet
();
void
editSnippet
();
void
addSnippetGroup
();
...
...
kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.h
View file @
e5bfcf7a
...
...
@@ -30,7 +30,12 @@ private:
void
zoomReset
();
void
zoomIn
();
void
zoomOut
();
enum
ZoomTextType
{
Unknown
=
-
1
,
ZoomReset
=
0
,
ZoomIn
,
ZoomOut
};
enum
ZoomTextType
{
Unknown
=
-
1
,
ZoomReset
=
0
,
ZoomIn
,
ZoomOut
,
};
ZoomTextType
mType
=
Unknown
;
ZoomLabel
*
mZoomLabelWidget
=
nullptr
;
};
...
...
kmail/grammarplugins/grammarcommon/grammarresulttextedit.h
View file @
e5bfcf7a
...
...
@@ -36,7 +36,9 @@ Q_SIGNALS:
private:
Q_DISABLE_COPY
(
GrammarResultTextEdit
)
void
slotReplaceWord
(
const
MessageComposer
::
PluginGrammarAction
&
act
,
const
QString
&
replacementWord
);
enum
TextInfo
{
ReplaceFormatInfo
=
QTextFormat
::
UserProperty
+
1
};
enum
TextInfo
{
ReplaceFormatInfo
=
QTextFormat
::
UserProperty
+
1
,
};
void
slotOpenGrammarUrlInfo
(
const
QString
&
url
);
void
generalPaletteChanged
();
QColor
mTextColor
;
...
...
kmail/grammarplugins/languagetool/src/languagetoolresultjob.h
View file @
e5bfcf7a
...
...
@@ -41,7 +41,13 @@ Q_SIGNALS:
private:
Q_DISABLE_COPY
(
LanguageToolResultJob
)
enum
class
JobError
{
NotError
,
EmptyText
,
UrlNotDefined
,
NetworkManagerNotDefined
,
LanguageNotDefined
};
enum
class
JobError
{
NotError
,
EmptyText
,
UrlNotDefined
,
NetworkManagerNotDefined
,
LanguageNotDefined
,
};
LanguageToolResultJob
::
JobError
canStartError
()
const
;
void
slotCheckGrammarFinished
();
...
...
kmail/plugins/common/antispamwizard.h
View file @
e5bfcf7a
...
...
@@ -89,7 +89,10 @@ public:
/** The wizard can be used for setting up anti-spam tools and for
setting up anti-virus tools.
*/
enum
WizardMode
{
AntiSpam
,
AntiVirus
};
enum
WizardMode
{
AntiSpam
,
AntiVirus
,
};
/** Constructor that needs to initialize from the main folder tree
of KMail.
...
...
kmail/plugins/mailmergeplugin/widgets/mailmergewidget.h
View file @
e5bfcf7a
...
...
@@ -21,7 +21,10 @@ class MailMergeWidget : public QWidget
{
Q_OBJECT
public:
enum
SourceType
{
AddressBook
=
0
,
CSV
=
1
};
enum
SourceType
{
AddressBook
=
0
,
CSV
=
1
,
};
explicit
MailMergeWidget
(
QWidget
*
parent
=
nullptr
);
~
MailMergeWidget
()
override
;
...
...
korganizer/plugins/datenums/datenums.h
View file @
e5bfcf7a
...
...
@@ -26,7 +26,10 @@ public:
Element
::
List
createDayElements
(
const
QDate
&
)
override
;
Element
::
List
createWeekElements
(
const
QDate
&
)
override
;
enum
DayNumber
{
DayOfYear
=
1
,
DaysRemaining
=
2
};
enum
DayNumber
{
DayOfYear
=
1
,
DaysRemaining
=
2
,
};
Q_DECLARE_FLAGS
(
DayNumbers
,
DayNumber
)
Q_REQUIRED_RESULT
QString
info
()
const
override
;
...
...
korganizer/plugins/hebrew/converter.h
View file @
e5bfcf7a
...
...
@@ -74,9 +74,37 @@ class Converter
friend
class
HebrewDate
;
public:
enum
HebrewMonths
{
Nissan
=
1
,
Iyar
,
Sivan
,
Tamuz
,
Ab
,
Elul
,
Tishrei
,
Cheshvan
,
Kislev
,
Tevet
,
Shvat
,
Adar
,
AdarII
,
AdarI
=
12
};
enum
SecularMonths
{
January
=
1
,
February
,
March
,
April
,
May
,
June
,
July
,
August
,
September
,
October
,
November
,
December
};
enum
HebrewMonths
{
Nissan
=
1
,
Iyar
,
Sivan
,
Tamuz
,
Ab
,
Elul
,
Tishrei
,
Cheshvan
,
Kislev
,
Tevet
,
Shvat
,
Adar
,
AdarII
,
AdarI
=
12
,
};
enum
SecularMonths
{
January
=
1
,
February
,
March
,
April
,
May
,
June
,
July
,
August
,
September
,
October
,
November
,
December
,
};
private:
static
bool
hebrew_leap_year_p
(
int
year
);
...
...
korganizer/plugins/hebrew/holiday.cpp
View file @
e5bfcf7a
...
...
@@ -45,7 +45,15 @@ QStringList Holiday::findHoliday(int month,
bool
showChol
,
bool
showOmer
)
{
enum
{
Sunday
=
1
,
Monday
,
Tuesday
,
Wednesday
,
Thursday
,
Friday
,
Saturday
};
enum
{
Sunday
=
1
,
Monday
,
Tuesday
,
Wednesday
,
Thursday
,
Friday
,
Saturday
,
};
QStringList
holidays
;
bool
isAShabbat
=
(
weekday
==
Saturday
);
...
...
korganizer/plugins/hebrew/holiday.h
View file @
e5bfcf7a
...
...
@@ -60,7 +60,7 @@ private:
Shvat
=
11
,
Adar
=
12
,
AdarII
=
13
,
AdarI
=
12
AdarI
=
12
,
};
static
QStringList
findHoliday
(
int
month
,
...
...
korganizer/plugins/hebrew/qcalendarsystem_p.h
View file @
e5bfcf7a
...
...
@@ -34,7 +34,7 @@ public:
PersianCalendar
=
13
,
ROCCalendar
=
14
,
ThaiCalendar
=
15
,
LastCalendar
=
ThaiCalendar
LastCalendar
=
ThaiCalendar
,
};
explicit
QCalendarSystem
(
QCalendarSystem
::
CalendarSystem
calendar
=
QCalendarSystem
::
DefaultCalendar
);
...
...
plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
View file @
e5bfcf7a
...
...
@@ -483,7 +483,12 @@ public:
return
newMyself
;
}
enum
MailType
{
Answer
,
Delegation
,
Forward
,
DeclineCounter
};
enum
MailType
{
Answer
,
Delegation
,
Forward
,
DeclineCounter
,
};
bool
mailICal
(
const
QString
&
receiver
,
const
QString
&
to
,
...
...
plugins/messageviewer/bodypartformatter/gnupgwks/gnupgwksformatter.h
View file @
e5bfcf7a
...
...
@@ -22,7 +22,11 @@ public:
bool
render
(
const
MimeTreeParser
::
MessagePartPtr
&
msgPart
,
MessageViewer
::
HtmlWriter
*
htmlWriter
,
MessageViewer
::
RenderContext
*
context
)
const
override
;
private:
enum
WKSStatus
{
CheckingPublishing
,
NotPublished
,
Published
};
enum
WKSStatus
{
CheckingPublishing
,
NotPublished
,
Published
,
};
QString
render
(
const
GnuPGWKSMessagePart
&
mp
,
WKSStatus
status
)
const
;
};
...
...
Prev
1
2
Next
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