#include <QList>
#include <QStringList>
#include <QVariantMap>
Go to the source code of this file.
◆ PROPERTYIMP
#define PROPERTYIMP |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value: private:
type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void
set##name(
const type val) \
{ \
m_##name = val; \
}
Definition at line 56 of file datacontracthelper.h.
◆ PROPERTYIMP_REF
#define PROPERTYIMP_REF |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value: private:
type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void
set##name(
const type& val) \
{ \
m_##name = val; \
}
Definition at line 70 of file datacontracthelper.h.
◆ PROPERTYIMP_ENUM
#define PROPERTYIMP_ENUM |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value: private:
type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void
set##name(
const type val) \
{ \
m_##name = val; \
} \
void set##name( int val) \
{ \
}
Definition at line 84 of file datacontracthelper.h.
◆ PROPERTYIMP_PTR
#define PROPERTYIMP_PTR |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value: private:
type* m_##name; \
public: \
type* name() \
{ \
if (m_##name == nullptr) \
m_##name =
new type(
this );\
return m_##name; \
}
Definition at line 102 of file datacontracthelper.h.
◆ PROPERTYIMP_RO_REF
#define PROPERTYIMP_RO_REF |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value: private:
type m_##name; \
public: \
type &name() \
{ \
return m_##name; \
}
Definition at line 114 of file datacontracthelper.h.