diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-03-10 17:38:27 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-03-10 17:38:27 +0100 |
commit | 73fc9c79cff979e9023df0b1a77848c67b590681 (patch) | |
tree | 7c8be387b504eccf35e4e3422b39a78d47354e7d /logic/BaseInstance.h | |
parent | 737169d1d3ac62a7db99d51e892289aee8c1d3a3 (diff) | |
download | MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.gz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.lz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.xz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.zip |
Instance badges. Some easter eggs and one for broken so far.
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r-- | logic/BaseInstance.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 27f939bc..443b0eaa 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -17,6 +17,7 @@ #include <QObject> #include <QDateTime> +#include <QSet> #include <settingsobject.h> @@ -184,9 +185,8 @@ public: NoFlags = 0x00, VersionBrokenFlag = 0x01 }; - Q_DECLARE_FLAGS(InstanceFlags, InstanceFlag) - InstanceFlags flags() const; - void setFlags(const BaseInstance::InstanceFlags flags); + QSet<InstanceFlag> flags() const; + void setFlags(const QSet<InstanceFlag> &flags); bool canLaunch() const; @@ -216,4 +216,4 @@ protected: // pointer for lazy people typedef std::shared_ptr<BaseInstance> InstancePtr; -Q_DECLARE_OPERATORS_FOR_FLAGS(BaseInstance::InstanceFlags) +Q_DECLARE_METATYPE(BaseInstance::InstanceFlag) |