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

Add trailing comma to enum values

parent 859860c4
......@@ -28,7 +28,7 @@ public:
enum FetchOptions {
NoOption,
ClearModel
ClearModel,
};
bool fetchThrottle = false;
void fetch(FetchOptions option = NoOption) {
......
......@@ -64,7 +64,7 @@ public:
DateRole,
ScoreRole,
ParentIndexRole,
DepthRole
DepthRole,
};
Q_ENUM(Roles)
......
......@@ -29,7 +29,7 @@ public:
Newest,
Alphabetical,
Rating,
Downloads
Downloads,
};
/**
......
......@@ -59,7 +59,7 @@ public:
enum Source {
Cache,
Online,
Registry
Registry,
};
enum PreviewType {
......@@ -68,7 +68,7 @@ public:
PreviewSmall3,
PreviewBig1,
PreviewBig2,
PreviewBig3
PreviewBig3,
};
struct DownloadLinkInformation {
......
......@@ -47,12 +47,12 @@ public:
enum Policy {
CheckNever,
CheckIfPossible,
CheckAlways
CheckAlways,
};
enum Scope {
ScopeUser,
ScopeSystem
ScopeSystem,
};
enum UncompressionOptions {
NeverUncompress, ///@< Never attempt to decompress a file, whatever format it is. Matches "never" knsrc setting
......@@ -60,7 +60,7 @@ public:
UncompressIfArchive, ///@< If the file is an archive, decompress it, otherwise just pass it on. Matches "archive" knsrc setting
UncompressIntoSubdirIfArchive, ///@< If the file is an archive, decompress it in a subdirectory if it contains multiple files, otherwise just pass it on. Matches "subdir-archive" knsrc setting
UncompressIntoSubdir, ///@< As Archive, except that if there is more than an item in the file, put contents in a subdirectory with the same name as the file. Matches "subdir" knsrc setting
UseKPackageUncompression ///@< Use the internal KPackage support for installing and uninstalling the package. Matches "kpackage" knsrc setting
UseKPackageUncompression, ///@< Use the internal KPackage support for installing and uninstalling the package. Matches "kpackage" knsrc setting
};
Q_ENUM(UncompressionOptions)
......
......@@ -18,7 +18,7 @@ class HTTPWorker : public QObject {
public:
enum JobType {
GetJob,
DownloadJob // Much the same as a get... except with a filesystem destination, rather than outputting data
DownloadJob, // Much the same as a get... except with a filesystem destination, rather than outputting data
};
explicit HTTPWorker(const QUrl& url, JobType jobType = GetJob, QObject* parent = nullptr);
explicit HTTPWorker(const QUrl& source, const QUrl& destination, JobType jobType = DownloadJob, QObject* parent = nullptr);
......
......@@ -17,7 +17,7 @@ enum JobFlag {
HideProgressInfo = 1,
Resume = 2,
Overwrite = 4,
DefaultFlags = None
DefaultFlags = None,
};
Q_DECLARE_FLAGS(JobFlags, JobFlag)
Q_DECLARE_OPERATORS_FOR_FLAGS(JobFlags)
......
......@@ -26,7 +26,7 @@ enum Operation {
UnknownOperation,
InstallOperation,
UpdateOperation,
UninstallOperation
UninstallOperation,
};
class KPackageTask;
class KPackageJob::Private {
......
......@@ -57,7 +57,7 @@ public:
None,
Installed,
Updates,
ExactEntryId
ExactEntryId,
};
Q_ENUM(Filter)
......
......@@ -48,7 +48,7 @@ public:
NoResponse = 2,
ContinueResponse = 3,
CancelResponse = 4,
OKResponse = YesResponse
OKResponse = YesResponse,
};
Q_ENUM(Response)
......@@ -57,7 +57,7 @@ public:
ContinueCancelQuestion = 1,
InputTextQuestion = 2,
SelectFromListQuestion = 3,
PasswordQuestion = 4
PasswordQuestion = 4,
};
Q_ENUM(QuestionType)
......
......@@ -82,7 +82,7 @@ public:
TRUSTED = 8, /// The signature is trusted
UNKNOWN = 16, ///The key is unknown
SIGNED_BAD_CLEAR = 27, ///used to clear the SIGNED_BAD flag
BAD_PASSPHRASE = 32 ///wrong passhprase entered
BAD_PASSPHRASE = 32, ///wrong passhprase entered
};
public Q_SLOTS:
......@@ -109,7 +109,7 @@ private:
List = 0, ///read the public keys
ListSecret, ///read the secret keys
Verify, ///verify the signature
Sign ///create signature
Sign, ///create signature
};
KeyStruct m_signatureKey;
......
......@@ -32,7 +32,7 @@ public:
Newest,
Alphabetical,
Rating,
Downloads
Downloads,
};
/**
......
......@@ -50,7 +50,7 @@ public:
Updateable,
Deleted,
Installing,
Updating
Updating,
};
~Entry();
......
......@@ -409,7 +409,7 @@ public:
enum CreateMenuStructureOption
{
CreateMenuStructure_Default,
CreateMenuStructure_MergeWithUserConfig
CreateMenuStructure_MergeWithUserConfig,
};
/**
......
......@@ -178,7 +178,7 @@ public:
* by existence of executable defined in the TryExec or Exec line of
* the provided kmt-desktopfile
*/
ServiceLocatingMode_ByProvidedExecLine
ServiceLocatingMode_ByProvidedExecLine,
};
/**
......@@ -194,7 +194,7 @@ public:
/**
* The item is placed in the "More" submenu.
*/
MenuSection_More
MenuSection_More,
};
// /* *
......@@ -238,7 +238,7 @@ public:
* Note, that the "Configure..." menu item still becomes visible when the
* user holds the Ctrl key while opening the menu.
*/
ConfigureDialogAccessible_Defensive
ConfigureDialogAccessible_Defensive,
};
public:
......
......@@ -26,7 +26,7 @@ public:
enum Roles {
NameRole = Qt::UserRole + 1,
IdRole,
DisplayNameRole
DisplayNameRole,
};
Q_ENUMS(Roles)
......
......@@ -47,7 +47,7 @@ public:
enum IncludedComments {
IncludeAllComments = 0, //< All comments should be included
IncludeOnlyReviews = 1, //< Only comments which have a rating (and thus is considered a review) should be included
IncludeReviewsAndReplies = 2 //< Reviews (as OnlyReviews), except child comments are also included
IncludeReviewsAndReplies = 2, //< Reviews (as OnlyReviews), except child comments are also included
};
Q_ENUM(IncludedComments)
......
......@@ -66,7 +66,7 @@ KCM.GridViewKCM {
enum ViewMode {
Tiles,
Icons,
Preview
Preview,
}
// Otherwise the first item will be focused, see BUG: 424894
......
......@@ -93,7 +93,7 @@ public:
ProviderIdRole,
SourceRole,
StatusRole,
CommentsModelRole
CommentsModelRole,
};
Q_ENUM(Roles)
enum ItemStatus {
......@@ -103,7 +103,7 @@ public:
UpdateableStatus,
DeletedStatus,
InstallingStatus,
UpdatingStatus
UpdatingStatus,
};
Q_ENUM(ItemStatus)
// The lists in OCS are one-indexed, and that isn't how one usually does things in C++.
......@@ -111,7 +111,7 @@ public:
// makes their meaning more explicit.
enum LinkId {
AutoDetectLinkId = -1,
FirstLinkId = 1
FirstLinkId = 1,
};
Q_ENUM(LinkId)
......
......@@ -20,7 +20,7 @@ public:
enum Roles {
NameRole = Qt::UserRole + 1,
FilePathRole
FilePathRole,
};
QHash< int, QByteArray > roleNames() const override;
......
......@@ -47,7 +47,7 @@ public:
FileNewUpdatePage,
Details1Page,
Details2Page,
UploadFinalPage
UploadFinalPage,
};
WizardPage currentPage;
......
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