#include "MOCoupon"
#include <QDomElement>
#include <QDomDocument>
#include <QVariant>
Initial value:=QMetaType::registerConverter<Nullable<MOCoupon>,
MOCoupon>([](
const Nullable<MOCoupon>&n){
return n.value();})|
QMetaType::registerConverter<QList<MOCoupon>,QVariantList>([](const QList<MOCoupon>&n){QVariantList r;for(auto v:n)r<<QVariant::fromValue(v);return r;})
This class represents a coupon.
Definition: srcMOCoupon.h:16
int class_metatypeid = qRegisterMetaType<MOCoupon>()+ qRegisterMetaType<QList<MOCoupon> >()+ qRegisterMetaType<Nullable<MOCoupon> >() |
|
static |