#include <QObject>
#include "global.h"
#include "assets/AssetWrapper.h"
#include "treasures/TreasureListWrapper.h"
Go to the source code of this file.
◆ OBJ_FLAG
| #define OBJ_FLAG |
( |
|
name_, |
|
|
|
flag_ |
|
) |
| |
Value: public: \
bool name_() const { return QUERY_FLAG(myWrappedItem, flag_); } \
void name_(bool value) const { if (value) SET_FLAG(myWrappedItem, flag_); else CLEAR_FLAG(myWrappedItem, flag_); } \
Q_PROPERTY(bool name_ READ name_ WRITE name_)
Macro to add a read-write property for an object flag. Will generate functions to get and set the property.
- Parameters
-
| name_ | property name. |
| flag_ | flag of the object, FLAG_xxx value. |
Definition at line 30 of file ObjectWrapper.h.