We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d94af1 commit c07b2afCopy full SHA for c07b2af
src/JObject.h
@@ -62,7 +62,9 @@
62
PropertyPrivateSet(QVariantList, x) \
63
public: Q_INVOKABLE void _type##x(const QString& prop){registerPtrProperty(prop, &t::staticMetaObject);} \
64
void append##t(t* i){QVariant v = QVariant::fromValue(i); if (v.isValid()) { _##x.append(v);}} \
65
- void remove##t(t* i){QVariant v = QVariant::fromValue(i); if (v.isValid()) { _##x.removeAll(v);}}
+ void remove##t(t* i){QVariant v = QVariant::fromValue(i); if (v.isValid()) { _##x.removeAll(v);}} \
66
+ int count##t()const {return _##x.length();} \
67
+ t* item##t##At(int i) {return _##x.at(i).value<t*>();}
68
69
// t: type, x: property name
70
#define MetaPropertyPublicSet_Ptr_List(t, x) private: Q_PROPERTY(QVariantList x READ x WRITE x) \
0 commit comments