summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler_p.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-25 00:38:43 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-25 00:38:43 (GMT)
commitd654f87319408e3d9754fa5a8ad376c3eaef4489 (patch)
tree7276a6edf146fb9d1426dfd39714a6b2fbc3c4cf /src/declarative/qml/qdeclarativecompiler_p.h
parentfcfb08e40264c3417da91f4e187758d85f190a4f (diff)
downloadQt-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.h3
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);