Change-Id: Id8d8f4e59793ba5fc2d3afa31674009af73a59c9
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
if (!property.startsWith(QStringLiteral("qproperty-"), Qt::CaseInsensitive))
continue;
property.remove(0, 10); // strip "qproperty-"
- const QVariant value = w->property(property.toLatin1());
const QMetaObject *metaObject = w->metaObject();
int index = metaObject->indexOfProperty(property.toLatin1());
if (index == -1) {
continue;
}
QVariant v;
+ const QVariant value = w->property(property.toLatin1());
switch (value.type()) {
// ### Qt 5
// case QVariant::Icon: v = decl.iconValue(); break;