diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-13 16:18:26 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-16 15:17:30 +0000 |
commit | f6eb6a3661f5c8c47c539d38b5bcb0a33c22d904 (patch) | |
tree | 72dbe00758ea1565f554834d6a71d86984891e85 /src/quicktemplates2/qquicktumbler_p_p.h | |
parent | acfe7fc8bb19c591a4c44d88aac95b3caa3d445f (diff) |
Tumbler: add positionViewAtIndex() function
This calls the respective PathView/ListView function (depending on
the value of wrap), and allows users to change the current index
without animations.
[ChangeLog][Controls][Tumbler] Added positionViewAtIndex() function
that calls the respective PathView/ListView function, depending on
the value of wrap. This allows changing currentIndex without
animations.
Task-number: QTBUG-66358
Change-Id: I7fe73bd3e53548ef41a165b68637d99f3171e02e
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktumbler_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquicktumbler_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicktumbler_p_p.h b/src/quicktemplates2/qquicktumbler_p_p.h index 75b1a396..6f0879b3 100644 --- a/src/quicktemplates2/qquicktumbler_p_p.h +++ b/src/quicktemplates2/qquicktumbler_p_p.h @@ -105,6 +105,7 @@ public: void disconnectFromView(); void setupViewData(QQuickItem *newControlContentItem); + void warnAboutIncorrectContentItem(); void syncCurrentIndex(); void setCount(int newCount); |