diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-07-02 12:59:47 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-07-07 15:13:00 (GMT) |
commit | 4ec4ba7bde9ac321640c3e0c7b186f0b044423b7 (patch) | |
tree | 9000c79d8185209d22f7426c9924b6be43237308 /src/declarative | |
parent | cb406a116bf2237c743ac05882fb06927c70359c (diff) | |
download | Qt-4ec4ba7bde9ac321640c3e0c7b186f0b044423b7.zip Qt-4ec4ba7bde9ac321640c3e0c7b186f0b044423b7.tar.gz Qt-4ec4ba7bde9ac321640c3e0c7b186f0b044423b7.tar.bz2 |
QML: Let the debugger now the name of embedded functions within a QML function
if you have stuff like
Rectangle { function foo() {... } }
We let QtScript, and hence the debugger know the function name.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp index e3ce70e..23307c9 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -2449,7 +2449,7 @@ bool QDeclarativeCompiler::buildDynamicMeta(QDeclarativeParser::Object *obj, Dyn for (int ii = 0; ii < obj->dynamicSlots.count(); ++ii) { Object::DynamicSlot &s = obj->dynamicSlots[ii]; QByteArray sig(s.name + '('); - QString funcScript(QLatin1String("(function(")); + QString funcScript(QLatin1String("(function ") + s.name + QLatin1Char('(')); for (int jj = 0; jj < s.parameterNames.count(); ++jj) { if (jj) { |