#include <QObject>
#include <QIcon>
Go to the source code of this file.
◆ ATW_PROP
#define ATW_PROP |
( |
|
type_, |
|
|
|
name_, |
|
|
|
field_ |
|
) |
| |
Value: public: \
type_ name_() const { return myWrappedItem->field_; } \
void name_(const type_ &val) { myWrappedItem->field_ = val; } \
Q_PROPERTY(type_ name_ READ name_ WRITE name_)
Macro to add a read-write property from myWrappedItem. Will generate functions to get and set the property.
- Parameters
-
type_ | property type. |
name_ | property name. |
field_ | field of myWrappedItem to use. |
Definition at line 126 of file AssetWrapper.h.
◆ ATW_RPROP
#define ATW_RPROP |
( |
|
type_, |
|
|
|
name_, |
|
|
|
field_ |
|
) |
| |
Value: public: \
type_ name_() const { return myWrappedItem->field_; } \
Q_PROPERTY(type_ name_ READ name_)
Macro to add a read-only property from myWrappedItem. Will generate a function to get the property.
- Parameters
-
type_ | property type. |
name_ | property name. |
field_ | field of myWrappedItem to use. |
Definition at line 114 of file AssetWrapper.h.