QSObject QSPointClass::construct(const QSList &args) const { if (args.size() == 1) { if (args[ 0 ].objectType() == this) { QSObject pt = args.at(0); return construct(QPoint(*point(&pt))); } } else if (args.size() == 2) { return construct(QPoint(args[ 0 ].toInteger(), args[ 1 ].toInteger())); } return construct(QPoint()); }
QSObject QSSizeClass::construct(const QSList &args) const { if (args.size() == 1) { if (args[ 0 ].objectType() == this) { QSObject sz = args.at(0); return construct(QSize(*size(&sz))); } } else if (args.size() == 2) { return construct(QSize(args[ 0 ].toInteger(), args[ 1 ].toInteger())); } return construct(QSize()); }
QSObject QSRectClass::construct(const QSList &args) const { if (args.size() == 1) { if (args[ 0 ].objectType() == this) { QSObject rt = args.at(0); return construct(QRect(*rect(&rt))); } } else if (args.size() == 4) { return construct(QRect(args[ 0 ].toInteger(), args[ 1 ].toInteger(), args[ 2 ].toInteger(), args[ 3 ].toInteger())); } return construct(QRect()); }