diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
commit | 67ca33d53ff805ca33ba775524086a89cb975df9 (patch) | |
tree | 04e02fc9a2ac0c6832c5189022b49a3419d9d762 /src/declarative/fx/qfxgridview.cpp | |
parent | d7400c910765bcbff6927143c348c771310b9d44 (diff) | |
download | Qt-67ca33d53ff805ca33ba775524086a89cb975df9.zip Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.gz Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.bz2 |
Make a number of Flickable API changes following review.
Diffstat (limited to 'src/declarative/fx/qfxgridview.cpp')
-rw-r--r-- | src/declarative/fx/qfxgridview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxgridview.cpp b/src/declarative/fx/qfxgridview.cpp index bf6e863..138a8ae 100644 --- a/src/declarative/fx/qfxgridview.cpp +++ b/src/declarative/fx/qfxgridview.cpp @@ -185,14 +185,14 @@ public: qreal position() const { Q_Q(const QFxGridView); - return flow == QFxGridView::LeftToRight ? q->yPosition() : q->xPosition(); + return flow == QFxGridView::LeftToRight ? q->viewportY() : q->viewportX(); } void setPosition(qreal pos) { Q_Q(QFxGridView); if (flow == QFxGridView::LeftToRight) - q->setYPosition(pos); + q->setViewportY(pos); else - q->setXPosition(pos); + q->setViewportX(pos); } int size() const { Q_Q(const QFxGridView); |