summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepath.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-31 03:35:48 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-31 03:41:50 (GMT)
commit51aed62ef08f1ffacce71d44612abe46b8344923 (patch)
tree6327e4f30e15d39d073fbf48c9beb849b1c803ac /src/declarative/graphicsitems/qdeclarativepath.cpp
parent57d25d03f0a53be4cca6d20dcce0e5f2f9eecc45 (diff)
downloadQt-51aed62ef08f1ffacce71d44612abe46b8344923.zip
Qt-51aed62ef08f1ffacce71d44612abe46b8344923.tar.gz
Qt-51aed62ef08f1ffacce71d44612abe46b8344923.tar.bz2
Add notifier for PathPercent.value
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepath.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepath.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepath.cpp b/src/declarative/graphicsitems/qdeclarativepath.cpp
index 2d08c7c..141a938 100644
--- a/src/declarative/graphicsitems/qdeclarativepath.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepath.cpp
@@ -867,6 +867,9 @@ qreal QDeclarativePathPercent::value() const
void QDeclarativePathPercent::setValue(qreal value)
{
- _value = value;
+ if (_value != value) {
+ _value = value;
+ emit changed();
+ }
}
QT_END_NAMESPACE