From 39047431363e14e6c90636a3cf48556ef62e8da7 Mon Sep 17 00:00:00 2001 From: simonyan <315082291@qq.com> Date: Tue, 29 Oct 2024 15:59:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=8F=90=E4=BA=A4define=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CFDStructDataManager/CFDStructDataDefine.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CFDStruct/CFDStructDataManager/CFDStructDataDefine.h 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 +