summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativelistview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-01-11 03:09:01 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-01-11 03:11:17 (GMT)
commit11347a267125ecd0eaa5b022547297082954eb86 (patch)
treeb1d26c63667d6d9cd4a0ca979baa319c9db27b42 /src/declarative/graphicsitems/qdeclarativelistview_p.h
parent39d2f837f5d5ac67d0cfcc3710aa23d22a84d3c1 (diff)
downloadQt-11347a267125ecd0eaa5b022547297082954eb86.zip
Qt-11347a267125ecd0eaa5b022547297082954eb86.tar.gz
Qt-11347a267125ecd0eaa5b022547297082954eb86.tar.bz2
Add methods to position view at beginning or end.
Takes into account header/footer. Task-number: QTBUG-16213 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativelistview_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview_p.h b/src/declarative/graphicsitems/qdeclarativelistview_p.h
index 2678b90..2f7f6da 100644
--- a/src/declarative/graphicsitems/qdeclarativelistview_p.h
+++ b/src/declarative/graphicsitems/qdeclarativelistview_p.h
@@ -209,6 +209,8 @@ public:
Q_INVOKABLE void positionViewAtIndex(int index, int mode);
Q_INVOKABLE int indexAt(int x, int y) const;
+ Q_INVOKABLE Q_REVISION(1) void positionViewAtBeginning();
+ Q_INVOKABLE Q_REVISION(1) void positionViewAtEnd();
public Q_SLOTS:
void incrementCurrentIndex();