summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index cb0c571..c2b2fb4 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -633,7 +633,7 @@ bool QmlCompiler::compileObject(Object *obj, const BindingContext &ctxt)
if (isCustomParser) {
// Custom parser types don't support signal properties
if (testProperty(prop, obj)) {
- if (deferred.contains(prop->name))
+ if (deferred.contains(QString::fromLatin1(prop->name.constData())))
deferredProps << prop;
else
COMPILE_CHECK(compileProperty(prop, obj, objCtxt));
@@ -644,7 +644,7 @@ bool QmlCompiler::compileObject(Object *obj, const BindingContext &ctxt)
if (isSignalPropertyName(prop->name)) {
COMPILE_CHECK(compileSignal(prop,obj));
} else {
- if (deferred.contains(prop->name))
+ if (deferred.contains(QString::fromLatin1(prop->name.constData())))
deferredProps << prop;
else
COMPILE_CHECK(compileProperty(prop, obj, objCtxt));
@@ -660,7 +660,7 @@ bool QmlCompiler::compileObject(Object *obj, const BindingContext &ctxt)
if (isCustomParser) {
if (testProperty(prop, obj)) {
QMetaProperty p = deferred.isEmpty()?QMetaProperty():QmlMetaType::defaultProperty(obj->metaObject());
- if (deferred.contains(p.name()))
+ if (deferred.contains(QString::fromLatin1(p.name())))
deferredProps << prop;
else
COMPILE_CHECK(compileProperty(prop, obj, objCtxt));
@@ -669,7 +669,7 @@ bool QmlCompiler::compileObject(Object *obj, const BindingContext &ctxt)
}
} else {
QMetaProperty p = deferred.isEmpty()?QMetaProperty():QmlMetaType::defaultProperty(obj->metaObject());
- if (deferred.contains(p.name()))
+ if (deferred.contains(QString::fromLatin1(p.name())))
deferredProps << prop;
else
COMPILE_CHECK(compileProperty(prop, obj, objCtxt));
@@ -1683,7 +1683,7 @@ QStringList QmlCompiler::deferredProperties(QmlParser::Object *obj)
return QStringList();
QMetaClassInfo classInfo = mo->classInfo(idx);
- QStringList rv = QString(QLatin1String(classInfo.value())).split(',');
+ QStringList rv = QString(QLatin1String(classInfo.value())).split(QLatin1Char(','));
return rv;
}