diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-10-18 03:51:08 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-10-18 04:08:19 (GMT) |
commit | d87e12f6d5c120b70d7182e20524fcee72db7cba (patch) | |
tree | 6b3c05d4947c6503cd6e8db3a7ee2e88764a3000 /src/declarative/graphicsitems/qdeclarativeflickable_p_p.h | |
parent | 0c06e59577df1ec715e67d6d5842800bcec24945 (diff) | |
download | Qt-d87e12f6d5c120b70d7182e20524fcee72db7cba.zip Qt-d87e12f6d5c120b70d7182e20524fcee72db7cba.tar.gz Qt-d87e12f6d5c120b70d7182e20524fcee72db7cba.tar.bz2 |
ListView.visibleArea.heightRatio should not emit a signal when it does not change.
Task-number: QTBUG-14492
Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeflickable_p_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeflickable_p_p.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h b/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h index beee741..afefde2 100644 --- a/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h @@ -182,10 +182,10 @@ class QDeclarativeFlickableVisibleArea : public QObject { Q_OBJECT - Q_PROPERTY(qreal xPosition READ xPosition NOTIFY pageChanged) - Q_PROPERTY(qreal yPosition READ yPosition NOTIFY pageChanged) - Q_PROPERTY(qreal widthRatio READ widthRatio NOTIFY pageChanged) - Q_PROPERTY(qreal heightRatio READ heightRatio NOTIFY pageChanged) + Q_PROPERTY(qreal xPosition READ xPosition NOTIFY xPositionChanged) + Q_PROPERTY(qreal yPosition READ yPosition NOTIFY yPositionChanged) + Q_PROPERTY(qreal widthRatio READ widthRatio NOTIFY widthRatioChanged) + Q_PROPERTY(qreal heightRatio READ heightRatio NOTIFY heightRatioChanged) public: QDeclarativeFlickableVisibleArea(QDeclarativeFlickable *parent=0); @@ -198,7 +198,10 @@ public: void updateVisible(); signals: - void pageChanged(); + void xPositionChanged(qreal xPosition); + void yPositionChanged(qreal yPosition); + void widthRatioChanged(qreal widthRatio); + void heightRatioChanged(qreal heightRatio); private: QDeclarativeFlickable *flickable; |