diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-07-15 16:56:01 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-07-20 09:43:39 +0000 |
commit | 11a56ee8f3a4d6e6514f16ae928891ce8a976572 (patch) | |
tree | 88e7a67efcde74c8f3e5cb62134d84882f7175d2 /src/quicktemplates2/qquicktumbler_p.h | |
parent | b3c6d85479c1646f890cc7aaa94f5f920a051ed6 (diff) |
Tumbler: don't crash if attached to a non-Item
Change-Id: I84702195fa09af53697c987efd8c87afd429f3c4
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktumbler_p.h')
-rw-r--r-- | src/quicktemplates2/qquicktumbler_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquicktumbler_p.h b/src/quicktemplates2/qquicktumbler_p.h index d047aa96..1c8cfa18 100644 --- a/src/quicktemplates2/qquicktumbler_p.h +++ b/src/quicktemplates2/qquicktumbler_p.h @@ -128,7 +128,7 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTumblerAttached : public QObject Q_PROPERTY(qreal displacement READ displacement NOTIFY displacementChanged FINAL) public: - explicit QQuickTumblerAttached(QQuickItem *delegateItem); + explicit QQuickTumblerAttached(QObject *parent = nullptr); ~QQuickTumblerAttached(); QQuickTumbler *tumbler() const; |