summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2009-04-21 16:51:45 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-04-24 08:05:53 (GMT)
commit2c0e87db61c4f5e31585b7b0d4d6f5f7ad25a5f5 (patch)
treecbd4b705cdf7add45a6f58cd0665776e218783b3 /src/declarative/qml/qmlscriptparser.cpp
parent772c321abef5d7c0fca38e3d8045d5a0c7c27ec9 (diff)
downloadQt-2c0e87db61c4f5e31585b7b0d4d6f5f7ad25a5f5.zip
Qt-2c0e87db61c4f5e31585b7b0d4d6f5f7ad25a5f5.tar.gz
Qt-2c0e87db61c4f5e31585b7b0d4d6f5f7ad25a5f5.tar.bz2
small cleanups
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index 53ed6ab..22169a5 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -506,17 +506,6 @@ QString ProcessAST::getPrimitive(const QByteArray &propertyName, AST::Expression
if(isSignalProperty(propertyName)) {
pp(expr);
-
- // here comes a cruel hack until we support functions properly with arguments for signal properties
- if (primitive.startsWith(QLatin1String("function("))) {
- int brace = 0;
- for (;brace < primitive.size(); ++brace)
- if (primitive.at(brace) == QLatin1Char('{'))
- break;
- primitive = primitive.mid(brace + 1, primitive.size() - brace - 2);
- }
- //end of hack
-
} else if (propertyName == "id" && expr && expr->kind == AST::Node::Kind_IdentifierExpression) {
primitive = AST::cast<AST::IdentifierExpression *>(expr)->name->asString();
} else if (expr->kind == AST::Node::Kind_StringLiteral) {