Instance badges. Some easter eggs and one for broken so far.
This commit is contained in:
parent
737169d1d3
commit
73fc9c79cf
13 changed files with 115 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue