summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbindingoptimizations_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-08-11 03:59:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-08-11 03:59:56 (GMT)
commita57bcdde329ef4c9a71aa6ba714f5e30ffd5dc6d (patch)
tree64cde5908b51e852a3c761031b809f3f056cec16 /src/declarative/qml/qmlbindingoptimizations_p.h
parent712b8ecad2407645ef80fef94181782d2227b002 (diff)
downloadQt-a57bcdde329ef4c9a71aa6ba714f5e30ffd5dc6d.zip
Qt-a57bcdde329ef4c9a71aa6ba714f5e30ffd5dc6d.tar.gz
Qt-a57bcdde329ef4c9a71aa6ba714f5e30ffd5dc6d.tar.bz2
Object property binding optimization
Add a binding optimization that hits anchors.fill: parent
Diffstat (limited to 'src/declarative/qml/qmlbindingoptimizations_p.h')
-rw-r--r--src/declarative/qml/qmlbindingoptimizations_p.h35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlbindingoptimizations_p.h b/src/declarative/qml/qmlbindingoptimizations_p.h
index f50972d..2d2ffec 100644
--- a/src/declarative/qml/qmlbindingoptimizations_p.h
+++ b/src/declarative/qml/qmlbindingoptimizations_p.h
@@ -60,11 +60,11 @@ QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-class QmlBindingIdOptimization : public QmlAbstractExpression,
- public QmlAbstractBinding
+class QmlBinding_Id : public QmlAbstractExpression,
+ public QmlAbstractBinding
{
public:
- QmlBindingIdOptimization(QObject *object, int propertyIdx,
+ QmlBinding_Id(QObject *object, int propertyIdx,
QmlContext *context, int id);
// Inherited from QmlAbstractBinding
@@ -75,14 +75,39 @@ public:
void reset();
private:
- QmlBindingIdOptimization **m_prev;
- QmlBindingIdOptimization *m_next;
+ QmlBinding_Id **m_prev;
+ QmlBinding_Id *m_next;
QObject *m_object;
int m_propertyIdx;
int m_id;
};
+class QmlBinding_ObjProperty : public QObject,
+ public QmlAbstractExpression,
+ public QmlAbstractBinding
+{
+ Q_OBJECT
+public:
+ QmlBinding_ObjProperty(QObject *object, int propertyIdx,
+ QObject *context, int contextIdx, int notifyIdx);
+
+ // Inherited from QmlAbstractBinding
+ virtual void setEnabled(bool);
+ virtual int propertyIndex();
+
+private slots:
+ virtual void update();
+
+private:
+ bool m_enabled;
+ QObject *m_object;
+ int m_propertyIdx;
+ QObject *m_context;
+ int m_contextIdx;
+ int m_notifyIdx;
+};
+
QT_END_NAMESPACE
QT_END_HEADER