diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-02-22 23:55:24 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-02-23 00:10:08 (GMT) |
commit | f93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2 (patch) | |
tree | 028b525e7d77580edd8dffe4cda33ba418fa0710 /src/declarative/graphicsitems/qdeclarativelistview_p.h | |
parent | bf9ca539dc4c5efff801856ad9d3f7e14dabad26 (diff) | |
download | Qt-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.h | 2 |
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(); |