diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataDefine.h b/CFDStruct/CFDStructDataManager/CFDStructDataDefine.h new file mode 100644 index 0000000..54f9e20 --- /dev/null +++ b/CFDStruct/CFDStructDataManager/CFDStructDataDefine.h @@ -0,0 +1,16 @@ +#ifndef CFDSTRUCTDATADEFINE_H +#define CFDSTRUCTDATADEFINE_H + +#include + +#define QVA_GLOBAL(x) QVariant::fromValue(x) +#define QVA_QS(x) QVariant::fromValue(QString(x)) +#define QVA_FROM_QS(x) qvariant_cast(x) + +Q_DECLARE_METATYPE(int*) +Q_DECLARE_METATYPE(bool*) +Q_DECLARE_METATYPE(double*) +Q_DECLARE_METATYPE(QString*) + +#endif // CFDSTRUCTDATADEFINE_H +