diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-07-03 16:44:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-05 09:47:01 +0200 |
commit | fe6ec7bcc17f88ab1aca5a7934d047456354c942 (patch) | |
tree | 61e722685a2bb6596a3eaa9f00526a5271f9cc68 /src/qml/qml/qqmlpropertycache_p.h | |
parent | a083ea8a34cad4feebcdadea33775ef6501ab884 (diff) |
Fix regression in tst_qqmlecmascript::signalAssignment
Detect errors in the signal declaration already at compile time, re-introducing
the earlier code in qqmlcompiler.cpp that checked that. This also means that
the parameter string construction can be done once for each signal and not for
each handler.
Change-Id: Icf6242a793939466bbc44d43bf041281164ad1b6
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertycache_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h index 1f9199cd6d..e70c89ced2 100644 --- a/src/qml/qml/qqmlpropertycache_p.h +++ b/src/qml/qml/qqmlpropertycache_p.h @@ -314,6 +314,8 @@ public: static int originalClone(QObject *, int index); QList<QByteArray> signalParameterNames(int index) const; + QString signalParameterStringForJS(int index, QString *errorString = 0); + static QString signalParameterStringForJS(QQmlEngine *engine, const QList<QByteArray> ¶meterNameList, QString *errorString = 0); const char *className() const; |