diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-23 09:50:01 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-23 13:02:32 +0000 |
commit | bb2a6c61777e2500fa00710c8bb752fa7b99f079 (patch) | |
tree | 5c3d0d4082a16f8d9dd47fa78e97c3faa39b281a /src/quicktemplates2/qquickscrollbar_p_p.h | |
parent | 0be463b7f5cd1e1074c5130c6e25e40a848c58ee (diff) |
Add QQuickScrollBarAttachedPrivate::setFlickable()
QQuickScrollBarAttached was assuming that a QQuickFlickable instance
was passed to the constructor. This patch allows specifying it after
the construction, making it possible for the upcoming ScrollView to
use attached scrollbars.
Change-Id: I7c434734f74df65af86263f09da6a46fa68fc946
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickscrollbar_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickscrollbar_p_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickscrollbar_p_p.h b/src/quicktemplates2/qquickscrollbar_p_p.h index a4526245..fa5bd0b5 100644 --- a/src/quicktemplates2/qquickscrollbar_p_p.h +++ b/src/quicktemplates2/qquickscrollbar_p_p.h @@ -101,6 +101,12 @@ public: return attached->d_func(); } + void setFlickable(QQuickFlickable *flickable); + + void initHorizontal(); + void initVertical(); + void cleanupHorizontal(); + void cleanupVertical(); void activateHorizontal(); void activateVertical(); void scrollHorizontal(); |