Commit cbd793db authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use Q_ENUM over Q_ENUMS

parent 9155a311
......@@ -43,8 +43,6 @@ class DiskQuota : public QObject
Q_PROPERTY(QuotaListModel* model READ model CONSTANT)
Q_ENUMS(TrayStatus)
public:
DiskQuota(QObject *parent = nullptr);
......@@ -57,6 +55,7 @@ public:
PassiveStatus,
NeedsAttentionStatus
};
Q_ENUM(TrayStatus)
public:
bool quotaInstalled() const;
......
......@@ -42,7 +42,7 @@ class MediaFrame : public QObject
NON_RECURSIVE,
RECURSIVE
};
Q_ENUMS(AddOption)
Q_ENUM(AddOption)
MediaFrame(QObject *parent = nullptr);
~MediaFrame() override;
......
......@@ -57,7 +57,7 @@ class PLASMA_GROUPINGCONTAINMENT_EXPORT AbstractGroup : public QGraphicsWidget
e.g. a layout */
FreeGroup = 1 /**< The applets can be freely transformed */
};
Q_ENUMS(GroupType)
Q_ENUM(GroupType)
/**
* Description on how draw a background for the group
......
......@@ -120,7 +120,6 @@ class DateWrapper : public QObject
class StaticDateWrapper : public QObject
{
Q_OBJECT
Q_ENUMS(DateType)
public:
enum DateType {
TextDate = Qt::TextDate,
......@@ -130,6 +129,7 @@ class StaticDateWrapper : public QObject
DefaultLocaleShortDate = Qt::DefaultLocaleShortDate,
DefaultLocaleLongDate = Qt::DefaultLocaleLongDate
};
Q_ENUM(DateType)
StaticDateWrapper(QObject *parent = nullptr);
......@@ -149,10 +149,6 @@ class StaticDateWrapper : public QObject
class ComicProviderWrapper : public QObject
{
Q_OBJECT
Q_ENUMS(IdentifierType)
Q_ENUMS(RequestType)
Q_ENUMS(PositionType)
Q_ENUMS(RedirectedUrlType)
Q_PROPERTY(bool identifierSpecified READ identifierSpecified)
Q_PROPERTY(QString textCodec READ textCodec WRITE setTextCodec)
Q_PROPERTY(QString comicAuthor READ comicAuthor WRITE setComicAuthor)
......@@ -175,16 +171,21 @@ class ComicProviderWrapper : public QObject
Right,
Bottom
};
Q_ENUM(PositionType)
enum RequestType {
Page = ComicProvider::Page,
Image = ComicProvider::Image,
User = ComicProvider::User
};
Q_ENUM(RequestType)
enum IdentifierType {
DateIdentifier = ComicProvider::DateIdentifier,
NumberIdentifier = ComicProvider::NumberIdentifier,
StringIdentifier = ComicProvider::StringIdentifier
};
Q_ENUM(IdentifierType)
enum RedirectedUrlType {
PreviousUrl = 0,
......@@ -194,6 +195,7 @@ class ComicProviderWrapper : public QObject
LastUrl = 4,
UserUrl = 10
};
Q_ENUM(RedirectedUrlType)
ComicProviderWrapper(ComicProviderKross *parent);
~ComicProviderWrapper() override;
......
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