aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickstackview_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-29 15:50:39 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-02 15:23:50 +0000
commit497ac61380d4b6ebfef88923131f61d648857943 (patch)
tree90f8cb1c4de949ffacedac5c23427508814d1b3b /src/templates/qquickstackview_p.h
parent2ee0e8770bf43182aae7fd4420e7bd986ecdd68e (diff)
Fix StackView::busy and child event filtering
1) renamed busy() to isBusy() to follow the Qt convention :) 2) fixed spurious busyChanged() emissions (it was always emitted on push/replace/pop even when the state didn't change (null transitions) 3) with null transitions, the child event filter was never turned off and therefore StackView "froze" after the first push/replace/pop Change-Id: I07fffa73db5a182865c7b2779641e1f95ed8b30b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickstackview_p.h')
-rw-r--r--src/templates/qquickstackview_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates/qquickstackview_p.h b/src/templates/qquickstackview_p.h
index e3121bf9..be73ea85 100644
--- a/src/templates/qquickstackview_p.h
+++ b/src/templates/qquickstackview_p.h
@@ -61,7 +61,7 @@ class QQuickStackViewPrivate;
class Q_LABSTEMPLATES_EXPORT QQuickStackView : public QQuickControl
{
Q_OBJECT
- Q_PROPERTY(bool busy READ busy NOTIFY busyChanged FINAL)
+ Q_PROPERTY(bool busy READ isBusy NOTIFY busyChanged FINAL)
Q_PROPERTY(int depth READ depth NOTIFY depthChanged FINAL)
Q_PROPERTY(QQuickItem *currentItem READ currentItem NOTIFY currentItemChanged FINAL)
Q_PROPERTY(QVariant initialItem READ initialItem WRITE setInitialItem FINAL)
@@ -78,7 +78,7 @@ public:
static QQuickStackAttached *qmlAttachedProperties(QObject *object);
- bool busy() const;
+ bool isBusy() const;
int depth() const;
QQuickItem *currentItem() const;