From bb2a6c61777e2500fa00710c8bb752fa7b99f079 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 23 Jan 2017 09:50:01 +0100 Subject: 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 --- src/quicktemplates2/qquickscrollbar_p_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/quicktemplates2/qquickscrollbar_p_p.h') 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(); -- cgit v1.2.3