aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickscrollbar_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-14 22:29:22 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-14 22:37:34 +0000
commit2153f3fb6b14a8994a71eba3c3165c33f6d7a4a3 (patch)
treec92a86286cceee97902e2faceab6d61a4546fe60 /src/templates/qquickscrollbar_p.h
parente8fb7657ed686f32e3f431dc2b810e2bbfdc4f60 (diff)
Fix ScrollBar & ScrollIndicator for the new Gallery
The Gallery example exposed some new bugs. We must let the scroll bar/indicator initialize its size before layouting it, or else it will be posioned on the edge and eventually grows outside of the flickable it is attached to. Therefore, we must monitor the size changes of the scroll bar/indicator the same way we're monitoring the size changes of the attached flickable. Furthermore, while debugging the issue, I noticed that QQuickScrollBar/Indicator were unnecessarily monitoring all geometry changes. Monitoring only size changes is enough. Change-Id: I2581dba29bb4606642ba470dce85534632d7752e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickscrollbar_p.h')
-rw-r--r--src/templates/qquickscrollbar_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/qquickscrollbar_p.h b/src/templates/qquickscrollbar_p.h
index 6171d26e..df0eb8ee 100644
--- a/src/templates/qquickscrollbar_p.h
+++ b/src/templates/qquickscrollbar_p.h
@@ -127,6 +127,7 @@ class Q_LABSTEMPLATES_EXPORT QQuickScrollBarAttached : public QObject
public:
explicit QQuickScrollBarAttached(QQuickFlickable *flickable);
+ ~QQuickScrollBarAttached();
QQuickScrollBar *horizontal() const;
void setHorizontal(QQuickScrollBar *horizontal);