summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-05-07 09:41:34 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-05-07 09:41:34 (GMT)
commita99a849dffc51a76256e880a81e6829c76199559 (patch)
tree3a2d1fec3805e3e54f1d4d362e85070163bea61e /src
parent0db46b7a592017a4ec541ce703b787458eeb8287 (diff)
downloadQt-a99a849dffc51a76256e880a81e6829c76199559.zip
Qt-a99a849dffc51a76256e880a81e6829c76199559.tar.gz
Qt-a99a849dffc51a76256e880a81e6829c76199559.tar.bz2
Addeed a warning if one is trying to animate a property that's not part
of the object Task-number: 251763
Diffstat (limited to 'src')
-rw-r--r--src/corelib/animation/qpropertyanimation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp
index 9a0c5bc..65e2f57 100644
--- a/src/corelib/animation/qpropertyanimation.cpp
+++ b/src/corelib/animation/qpropertyanimation.cpp
@@ -97,6 +97,8 @@ void QPropertyAnimationPrivate::updateMetaProperty()
property = mo->property(propertyIndex);
propertyType = property.userType();
} else {
+ if (!target->dynamicPropertyNames().contains(propertyName))
+ qWarning("QPropertyAnimation: you're trying to animate a non-existing property %s of your QObject", propertyName.constData());
hasMetaProperty = 2;
}
}