aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickstackview_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-15 16:43:17 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-18 20:02:34 +0000
commit8a1eb34740bc5bc4db4972ab2b2a8e738dca979a (patch)
tree44923f622213dc8ae0d284f28653ea717b8d184e /src/quicktemplates2/qquickstackview_p.h
parent65b323fdba1d6567c73229997f6ce0784dfc8427 (diff)
StackView: don't crash if attached to a non-Item
Change-Id: Ifa7ef9b0960494df917f9f60bf8d94cbee0f4661 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickstackview_p.h')
-rw-r--r--src/quicktemplates2/qquickstackview_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickstackview_p.h b/src/quicktemplates2/qquickstackview_p.h
index c76f8167..d8b6ce7c 100644
--- a/src/quicktemplates2/qquickstackview_p.h
+++ b/src/quicktemplates2/qquickstackview_p.h
@@ -167,7 +167,7 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickStackAttached : public QObject
Q_PROPERTY(QQuickStackView::Status status READ status NOTIFY statusChanged FINAL)
public:
- explicit QQuickStackAttached(QQuickItem *parent = nullptr);
+ explicit QQuickStackAttached(QObject *parent = nullptr);
~QQuickStackAttached();
int index() const;