summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlsetproperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmlsetproperties.cpp')
-rw-r--r--src/declarative/util/qmlsetproperties.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/declarative/util/qmlsetproperties.cpp b/src/declarative/util/qmlsetproperties.cpp
index 7a68ba2..6464e33 100644
--- a/src/declarative/util/qmlsetproperties.cpp
+++ b/src/declarative/util/qmlsetproperties.cpp
@@ -308,17 +308,12 @@ QmlSetProperties::ActionList QmlSetProperties::actions()
for (int ii = 0; ii < d->properties.count(); ++ii) {
QByteArray property = d->properties.at(ii).first;
- QmlMetaProperty prop = d->property(property);
- if (prop.isValid()) {
- Action a;
- a.restore = restoreEntryValues();
- a.property = prop;
- a.fromValue = a.property.read();
- a.toValue = d->properties.at(ii).second;
- a.specifiedObject = d->object;
- a.specifiedProperty = QString::fromLatin1(property);
+ Action a(d->object, QString::fromLatin1(property),
+ d->properties.at(ii).second);
+ if (a.property.isValid()) {
+ a.restore = restoreEntryValues();
list << a;
}
}