aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmlbind_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2016-03-01 21:14:48 -0600
committerMichael Brasser <michael.brasser@live.com>2016-04-08 17:12:53 +0000
commit1148d3acead3c13072876b873fb4ee9440921943 (patch)
tree8ad210b89a316a72b1b4bac309b2ad20420d7afc /src/qml/types/qqmlbind_p.h
parent49fdb74757e5d9eb9333c10f1b756eed119bbb67 (diff)
Add delayed property to Binding.
Provide a way to avoid potentially expensive or unexpected intermediate values. [ChangeLog][Binding] Add delayed property to Binding as a way to avoid potentially expensive or unexpected intermediate values. Change-Id: I6aaca570859cc1344eeb9c9f19f32660e8c0b4e0 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/qml/types/qqmlbind_p.h')
-rw-r--r--src/qml/types/qqmlbind_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/types/qqmlbind_p.h b/src/qml/types/qqmlbind_p.h
index 581995af56..77939a40bc 100644
--- a/src/qml/types/qqmlbind_p.h
+++ b/src/qml/types/qqmlbind_p.h
@@ -68,6 +68,7 @@ class Q_AUTOTEST_EXPORT QQmlBind : public QObject, public QQmlPropertyValueSourc
Q_PROPERTY(QString property READ property WRITE setProperty)
Q_PROPERTY(QVariant value READ value WRITE setValue)
Q_PROPERTY(bool when READ when WRITE setWhen)
+ Q_PROPERTY(bool delayed READ delayed WRITE setDelayed REVISION 8)
public:
QQmlBind(QObject *parent=0);
@@ -85,12 +86,16 @@ public:
QVariant value() const;
void setValue(const QVariant &);
+ bool delayed() const;
+ void setDelayed(bool);
+
protected:
virtual void setTarget(const QQmlProperty &);
virtual void classBegin();
virtual void componentComplete();
private:
+ void prepareEval();
void eval();
};