Migration of QtMvvm from github
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef QTMVVMCORE_GLOBAL_H
|
|
|
|
#define QTMVVMCORE_GLOBAL_H
|
|
|
|
|
|
|
|
#include <QtCore/qglobal.h>
|
|
|
|
|
|
|
|
#include "qtmvvmcore_helpertypes.h"
|
|
|
|
|
|
|
|
#if defined(QT_BUILD_MVVM_LIB)
|
|
|
|
# define Q_MVVMCORE_EXPORT Q_DECL_EXPORT
|
|
|
|
#else
|
|
|
|
# define Q_MVVMCORE_EXPORT Q_DECL_IMPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define QTMVVM_INJECT(classType, name) \
|
|
|
|
static inline QByteArray __qtmvvm_inject_##name() { \
|
|
|
|
return QtMvvm::__helpertypes::inject_iid<classType>(); \
|
|
|
|
} \
|
|
|
|
Q_PROPERTY(QByteArray __qtmvvm_inject_##name READ __qtmvvm_inject_##name STORED false SCRIPTABLE false DESIGNABLE false CONSTANT FINAL)
|
|
|
|
|
|
|
|
#define QTMVVM_INJECT_PROP(type, name, member) \
|
|
|
|
Q_PROPERTY(type name MEMBER member) \
|
|
|
|
QTMVVM_INJECT(type, name)
|
|
|
|
|
|
|
|
#endif // QTMVVMCORE_GLOBAL_H
|