diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-12-30 13:20:24 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-16 15:46:28 +0000 |
commit | 8eada7ae7d41a2d93142ea1a6454ab2bbb0998ed (patch) | |
tree | 7cb0ecfa2f7036b4a25a0e147d07313d7fa64a40 /src/quick/items/qquicklistview_p.h | |
parent | 09dc5a0c4c08e8f13ddc81d82a9fc2d2af047165 (diff) |
ListView: allow flicking to both directions
Previously flicking was restricted to the orientation of the ListView.
[ChangeLog][QtQuick][ListView] Made it possible to enable horizontal
flicking in a vertical ListView, and vice versa. The only thing apps
must do is to specify the desired flick direction and the content
width (vertical ListView) or content height (horizontal ListView),
which is not calculated by ListView.
Change-Id: Ic370e57f5d18679940d48e7a2c20c200b2ef36d1
Task-number: QTBUG-52553
Task-number: QTBUG-56501
Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquicklistview_p.h')
-rw-r--r-- | src/quick/items/qquicklistview_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquicklistview_p.h b/src/quick/items/qquicklistview_p.h index 3a871e88e9..dbed8dfed4 100644 --- a/src/quick/items/qquicklistview_p.h +++ b/src/quick/items/qquicklistview_p.h @@ -196,6 +196,8 @@ protected: void keyPressEvent(QKeyEvent *) Q_DECL_OVERRIDE; void geometryChanged(const QRectF &newGeometry,const QRectF &oldGeometry) Q_DECL_OVERRIDE; void initItem(int index, QObject *item) Q_DECL_OVERRIDE; + qreal maxYExtent() const Q_DECL_OVERRIDE; + qreal maxXExtent() const Q_DECL_OVERRIDE; }; class QQuickListViewAttached : public QQuickItemViewAttached |