diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-02-25 00:38:43 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-02-25 00:38:43 (GMT) |
commit | d654f87319408e3d9754fa5a8ad376c3eaef4489 (patch) | |
tree | 7276a6edf146fb9d1426dfd39714a6b2fbc3c4cf /src/declarative/qml/qdeclarativecompiler_p.h | |
parent | fcfb08e40264c3417da91f4e187758d85f190a4f (diff) | |
download | Qt-d654f87319408e3d9754fa5a8ad376c3eaef4489.zip Qt-d654f87319408e3d9754fa5a8ad376c3eaef4489.tar.gz Qt-d654f87319408e3d9754fa5a8ad376c3eaef4489.tar.bz2 |
Automatically connect to signals "onFooChanged" if property is "foo".
This follows on from a2a8cea2835ef24104fe784b6ce0f508cc5637c0 to make
it work for PropertyChanges and QDeclarativeMetaProperty as well.
Task-number: QT-2783
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h index 627490d..2ea3366 100644 --- a/src/declarative/qml/qdeclarativecompiler_p.h +++ b/src/declarative/qml/qdeclarativecompiler_p.h @@ -159,6 +159,8 @@ public: static bool isAttachedPropertyName(const QByteArray &); static bool isSignalPropertyName(const QByteArray &); + static QMetaMethod findSignalByName(const QMetaObject *, const QByteArray &name); + private: static void reset(QDeclarativeCompiledData *); @@ -263,7 +265,6 @@ private: int componentTypeRef(); - static int findSignalByName(const QMetaObject *, const QByteArray &name); static QDeclarativeType *toQmlType(QDeclarativeParser::Object *from); bool canCoerce(int to, QDeclarativeParser::Object *from); bool canCoerce(int to, int from); |