Lines 134-142
void QPropertyAnimationPrivate::updateProperty(const QVariant &newValue)
Link Here
|
134 |
} |
134 |
} |
135 |
|
135 |
|
136 |
if (newValue.userType() == propertyType) { |
136 |
if (newValue.userType() == propertyType) { |
137 |
//no conversion is needed, we directly call the QMetaObject::metacall |
137 |
int status = -1; |
138 |
void *data = const_cast<void*>(newValue.constData()); |
138 |
int flags = 0; |
139 |
QMetaObject::metacall(targetValue, QMetaObject::WriteProperty, propertyIndex, &data); |
139 |
void *argv[] = { const_cast<void*>(newValue.data()), 0, &status, &flags }; |
|
|
140 |
QMetaObject::metacall(targetValue, QMetaObject::WriteProperty, propertyIndex, argv); |
140 |
} else { |
141 |
} else { |
141 |
targetValue->setProperty(propertyName.constData(), newValue); |
142 |
targetValue->setProperty(propertyName.constData(), newValue); |
142 |
} |
143 |
} |