diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-03-17 03:14:24 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-03-17 03:14:24 (GMT) |
commit | 9bf133d66f91e29b77ecff16b595280565ab0837 (patch) | |
tree | d86382ac3cf2a7f3b2de1c8210b3eb285c380b89 /src/declarative/graphicsitems/qdeclarativegridview_p.h | |
parent | dc829ac31694f382bf7b8a0702f73409762e36f0 (diff) | |
download | Qt-9bf133d66f91e29b77ecff16b595280565ab0837.zip Qt-9bf133d66f91e29b77ecff16b595280565ab0837.tar.gz Qt-9bf133d66f91e29b77ecff16b595280565ab0837.tar.bz2 |
Add ListView and GridView.indexAt() methods to get the index at a point.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview_p.h b/src/declarative/graphicsitems/qdeclarativegridview_p.h index f14ec14..f032240 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview_p.h +++ b/src/declarative/graphicsitems/qdeclarativegridview_p.h @@ -140,6 +140,9 @@ public: enum PositionMode { Beginning, Center, End, Visible, Contain }; Q_ENUMS(PositionMode) + Q_INVOKABLE void positionViewAtIndex(int index, int mode); + Q_INVOKABLE int indexAt(int x, int y) const; + static QDeclarativeGridViewAttached *qmlAttachedProperties(QObject *); public Q_SLOTS: @@ -147,7 +150,6 @@ public Q_SLOTS: void moveCurrentIndexDown(); void moveCurrentIndexLeft(); void moveCurrentIndexRight(); - void positionViewAtIndex(int index, int mode); Q_SIGNALS: void countChanged(); |