summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-24 05:32:55 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-24 05:32:55 (GMT)
commit64f8d8c72874cd2aca592045e861a7d73d058e15 (patch)
tree0b8c34f929647e9e86185b4683dcb00a9b365ec0
parent8ba5e3b86984fce9fd3999d643cad6a732653940 (diff)
downloadQt-64f8d8c72874cd2aca592045e861a7d73d058e15.zip
Qt-64f8d8c72874cd2aca592045e861a7d73d058e15.tar.gz
Qt-64f8d8c72874cd2aca592045e861a7d73d058e15.tar.bz2
Fix assert
QmlMetaType::attachedPropertiesFuncId already has the hack, not needed from here too!
-rw-r--r--src/declarative/qml/qmlcompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index 20f0d93f..2e8666d 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -1427,7 +1427,7 @@ bool QmlCompiler::buildAttachedProperty(QmlParser::Property *prop,
const BindingContext &ctxt)
{
Q_ASSERT(prop->value);
- int id = QmlMetaType::attachedPropertiesFuncId("Qt/4.6/"+prop->name); // XXX Should not hard-code namespace
+ int id = QmlMetaType::attachedPropertiesFuncId(prop->name);
Q_ASSERT(id != -1); // This is checked in compileProperty()
prop->index = id;