summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlconnection.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-01-18 01:43:36 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-01-18 01:49:46 (GMT)
commitc5f7b5d382b14ff73fc40044c395148d15844c2f (patch)
treefd076deec706e54c457c03bb411e315d5587e2ce /src/declarative/util/qmlconnection.cpp
parentb58738e7ea91aa9f14b213268f338507c6529ba4 (diff)
downloadQt-c5f7b5d382b14ff73fc40044c395148d15844c2f.zip
Qt-c5f7b5d382b14ff73fc40044c395148d15844c2f.tar.gz
Qt-c5f7b5d382b14ff73fc40044c395148d15844c2f.tar.bz2
Handle whitespace in Connection signal signatures.
Task-number: QTBUG-7210
Diffstat (limited to 'src/declarative/util/qmlconnection.cpp')
-rw-r--r--src/declarative/util/qmlconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlconnection.cpp b/src/declarative/util/qmlconnection.cpp
index f5fbd3f..800fd6b 100644
--- a/src/declarative/util/qmlconnection.cpp
+++ b/src/declarative/util/qmlconnection.cpp
@@ -172,7 +172,7 @@ void QmlConnection::connectIfValid()
if (lparen >= 0 && d->signal.length() > lparen+2) {
QStringList l = d->signal.mid(lparen+1,d->signal.length()-lparen-2).split(QLatin1Char(','));
foreach (const QString &s, l) {
- sigparams.append(s.toUtf8());
+ sigparams.append(s.trimmed().toUtf8());
}
}
QString signalname = d->signal.left(lparen);