diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-04-12 10:18:06 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-04-12 09:14:09 +0000 |
commit | ad343ad8ffc1016dd7d2d79603148ab2a07fe713 (patch) | |
tree | 5521c9f7bf0f3cb3852e23505f402234a67c629f /src/quicktemplates2/qquickswipedelegate_p.h | |
parent | 9708f54144f102e4f97334c953a0a890874a6881 (diff) |
QQuickSwipeDelegate: don't re-position until component complete
This avoids a binding loop with implicitBackgroundWidth. The problem
is that reposition() calls QQuickControl::background(), which may force
an early execution that triggers a whole bunch of expressions to be
re-evaluated.
Change-Id: I6d780a3ecb78cfb0581fee859a7ead0eb7ecdc1a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswipedelegate_p.h')
-rw-r--r-- | src/quicktemplates2/qquickswipedelegate_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickswipedelegate_p.h b/src/quicktemplates2/qquickswipedelegate_p.h index ad840097..53211ccb 100644 --- a/src/quicktemplates2/qquickswipedelegate_p.h +++ b/src/quicktemplates2/qquickswipedelegate_p.h @@ -79,6 +79,7 @@ protected: void mouseReleaseEvent(QMouseEvent *event) override; void touchEvent(QTouchEvent *event) override; + void componentComplete() override; void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; QFont defaultFont() const override; |