summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativelistview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-22 23:55:24 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-02-23 00:10:08 (GMT)
commitf93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2 (patch)
tree028b525e7d77580edd8dffe4cda33ba418fa0710 /src/declarative/graphicsitems/qdeclarativelistview_p.h
parentbf9ca539dc4c5efff801856ad9d3f7e14dabad26 (diff)
downloadQt-f93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2.zip
Qt-f93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2.tar.gz
Qt-f93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2.tar.bz2
ListView and GridView indexAt should use qreal coordinates.
Change-Id: Ibe6969b5c3209062213c6582eaf4c285bcb793de Task-number: QTBUG-17594 Reviewed-by: Bea Lam
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativelistview_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview_p.h b/src/declarative/graphicsitems/qdeclarativelistview_p.h
index 10fbf10..265f4bd 100644
--- a/src/declarative/graphicsitems/qdeclarativelistview_p.h
+++ b/src/declarative/graphicsitems/qdeclarativelistview_p.h
@@ -208,7 +208,7 @@ public:
enum PositionMode { Beginning, Center, End, Visible, Contain };
Q_INVOKABLE void positionViewAtIndex(int index, int mode);
- Q_INVOKABLE int indexAt(int x, int y) const;
+ Q_INVOKABLE int indexAt(qreal x, qreal y) const;
Q_INVOKABLE Q_REVISION(1) void positionViewAtBeginning();
Q_INVOKABLE Q_REVISION(1) void positionViewAtEnd();