From d12c9306ee2355a76e3e037877ee445b31f66a23 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 23 May 2012 16:01:21 +0100 Subject: Use static dispatch tables for QQmlAbstractBinding This saves us the space of the virtual table pointer, but does somewhat limit us to the 4 QQmlAbstractBinding types that we have today. Change-Id: I03d06ef2ec0c51271c28e7a5aab6dc689d369da4 Reviewed-by: Roberto Raggi --- src/qml/qml/qqmlvaluetypeproxybinding_p.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/qml/qml/qqmlvaluetypeproxybinding_p.h') diff --git a/src/qml/qml/qqmlvaluetypeproxybinding_p.h b/src/qml/qml/qqmlvaluetypeproxybinding_p.h index 0135d575df..a77562ed63 100644 --- a/src/qml/qml/qqmlvaluetypeproxybinding_p.h +++ b/src/qml/qml/qqmlvaluetypeproxybinding_p.h @@ -62,17 +62,19 @@ class QQmlValueTypeProxyBinding : public QQmlAbstractBinding public: QQmlValueTypeProxyBinding(QObject *o, int coreIndex); - virtual Type bindingType() const { return ValueTypeProxy; } - - virtual void setEnabled(bool, QQmlPropertyPrivate::WriteFlags); - virtual void update(QQmlPropertyPrivate::WriteFlags); - virtual int propertyIndex() const; - virtual QObject *object() const; + int propertyIndex() const; + QObject *object() const; QQmlAbstractBinding *binding(int propertyIndex); void removeBindings(quint32 mask); + // "Inherited" from QQmlAbstractBinding + static void setEnabled(QQmlAbstractBinding *, bool, QQmlPropertyPrivate::WriteFlags); + static void update(QQmlAbstractBinding *, QQmlPropertyPrivate::WriteFlags); + static int propertyIndex(const QQmlAbstractBinding *); + static QObject *object(const QQmlAbstractBinding *); + protected: ~QQmlValueTypeProxyBinding(); -- cgit v1.2.3