diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-03-23 11:26:30 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-03-24 13:27:43 +0000 |
commit | 762d4ceb5fe19d97bcdbdba1dae74816126b7b75 (patch) | |
tree | f7c278b9944ddc57222d1573bcfc06de3328400f /src/quicktemplates2/qquickstackview_p_p.h | |
parent | 9ccdc189c7e39b8d4f645f082daa3a5e3fedc5b7 (diff) |
Add QQuickStackViewPrivate::warn() helper
Store the current operation name internally to allow throwing
informative warnings when component creation fails.
Task-number: QTBUG-59634
Change-Id: I7506c5eb4be35878c8abd73a637357e0d8ae08a2
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickstackview_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickstackview_p_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickstackview_p_p.h b/src/quicktemplates2/qquickstackview_p_p.h index ca610153..532a2b57 100644 --- a/src/quicktemplates2/qquickstackview_p_p.h +++ b/src/quicktemplates2/qquickstackview_p_p.h @@ -72,6 +72,8 @@ public: return view->d_func(); } + void warn(const QString &error); + void setCurrentItem(QQuickStackElement *element); QList<QQuickStackElement *> parseElements(QQmlV4Function *args, int from = 0); @@ -91,6 +93,7 @@ public: void setBusy(bool busy); bool busy; + QString operation; QVariant initialItem; QQuickItem *currentItem; QSet<QQuickStackElement*> removing; |