summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-24 05:56:05 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-24 05:56:05 (GMT)
commit768209aebcbc66fec3a600be0a0f0e58d9f405d8 (patch)
treeedfec1bb6966b5070f5b141100a407695ba920f2 /src/declarative/graphicsitems/qdeclarativegridview_p.h
parent1b4d6818865548b752008242ddbea6a4e5206684 (diff)
downloadQt-768209aebcbc66fec3a600be0a0f0e58d9f405d8.zip
Qt-768209aebcbc66fec3a600be0a0f0e58d9f405d8.tar.gz
Qt-768209aebcbc66fec3a600be0a0f0e58d9f405d8.tar.bz2
Restore neutral movement state if a view is manually positioned.
Make sure the previous movement state is cancelled if contentX or contentY are set directly. Task-number: QTBUG-11650
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview_p.h b/src/declarative/graphicsitems/qdeclarativegridview_p.h
index 021aad9..64b91d8 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview_p.h
+++ b/src/declarative/graphicsitems/qdeclarativegridview_p.h
@@ -151,6 +151,9 @@ public:
QDeclarativeComponent *header() const;
void setHeader(QDeclarativeComponent *);
+ virtual void setContentX(qreal pos);
+ virtual void setContentY(qreal pos);
+
enum PositionMode { Beginning, Center, End, Visible, Contain };
Q_INVOKABLE void positionViewAtIndex(int index, int mode);