diff --git a/tests/QBind/QValue.h b/tests/QBind/QValue.h index 08560ea66b8a4ce47ad7df5035dbfb7e990a8a12..c6a9dca643b6144b0c3e6165bb1111527a7d9905 100644 --- a/tests/QBind/QValue.h +++ b/tests/QBind/QValue.h @@ -848,9 +848,9 @@ QSeq QSeq::forEach(Ts& ts, #include #include -// For QBIND_GADGET_WITH_METAOBJECT below +// For Q_DEFINE_ZAP_WITH_METAOBJECT below template -QValueStatus qbind(QValue&& v, T* t) { +QValueStatus qzap(QValue&& v, T* t) { auto rw = v->mode(); auto mo = T::staticMetaObject; auto r = v.meta(qmName,QAsciiData(mo.className())).record(); @@ -921,7 +921,7 @@ QValueStatus qbind(QValue&& v, T* t) { } //! Default bind(QValue&&) based on static QMetaObject reflection -#define QBIND_GADGET_WITH_METAOBJECT(Class) QValueStatus zap(QValue&& v) { return qbind(std::move(v), this); } +#define Q_DEFINE_ZAP_WITH_METAOBJECT(Class) QValueStatus zap(QValue&& v) { return qzap(std::move(v), this); } template struct QTransmogrifier> { diff --git a/tests/QBind/data.h b/tests/QBind/data.h index 3ecc51fe0a2d83bb5237aaa524eda4df1c5d527d..eb2f3df8434f7ff5580eadfa10515bef8833b23f 100644 --- a/tests/QBind/data.h +++ b/tests/QBind/data.h @@ -9,7 +9,7 @@ class Phone { Q_PROPERTY(Type type MEMBER _t) Q_PROPERTY(QString number MEMBER _n) public: - QBIND_GADGET_WITH_METAOBJECT(Phone) // making it (de)serializable and printable using reflection + Q_DEFINE_ZAP_WITH_METAOBJECT(Phone) // making it (de)serializable and printable using reflection enum Type : quint8 { Unknown=0, Mobile, Home, Office }; Q_ENUM(Type)