summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlpropertycache.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:00:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:00:08 (GMT)
commit6be94173f3f209d785e5787df8440d20ff0f2709 (patch)
tree75794282e09b2af08b26752069b0eb7fcabe3653 /src/declarative/qml/qmlpropertycache.cpp
parent68c69f88d4c3a7b9f24162a4c7708ded7caba90e (diff)
downloadQt-6be94173f3f209d785e5787df8440d20ff0f2709.zip
Qt-6be94173f3f209d785e5787df8440d20ff0f2709.tar.gz
Qt-6be94173f3f209d785e5787df8440d20ff0f2709.tar.bz2
Use utf8 instead of latin1 where appropriate
Diffstat (limited to 'src/declarative/qml/qmlpropertycache.cpp')
-rw-r--r--src/declarative/qml/qmlpropertycache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlpropertycache.cpp b/src/declarative/qml/qmlpropertycache.cpp
index 63ce00c..e00126f 100644
--- a/src/declarative/qml/qmlpropertycache.cpp
+++ b/src/declarative/qml/qmlpropertycache.cpp
@@ -52,7 +52,7 @@ void QmlPropertyCache::Data::load(const QMetaProperty &p)
propType = qMetaTypeId<QVariant>();
coreIndex = p.propertyIndex();
notifyIndex = p.notifySignalIndex();
- name = QLatin1String(p.name());
+ name = QString::fromUtf8(p.name());
if (p.isConstant())
flags |= Data::IsConstant;
@@ -76,7 +76,7 @@ void QmlPropertyCache::Data::load(const QMetaProperty &p)
void QmlPropertyCache::Data::load(const QMetaMethod &m)
{
- name = QLatin1String(m.signature());
+ name = QString::fromUtf8(m.signature());
int parenIdx = name.indexOf(QLatin1Char('('));
Q_ASSERT(parenIdx != -1);
name = name.left(parenIdx);
@@ -120,7 +120,7 @@ QmlPropertyCache::Data QmlPropertyCache::create(const QMetaObject *metaObject,
int methodCount = metaObject->methodCount();
for (int ii = methodCount - 1; ii >= 0; --ii) {
QMetaMethod m = metaObject->method(ii);
- QString methodName = QLatin1String(m.signature());
+ QString methodName = QString::fromUtf8(m.signature());
int parenIdx = methodName.indexOf(QLatin1Char('('));
Q_ASSERT(parenIdx != -1);
@@ -151,7 +151,7 @@ QmlPropertyCache *QmlPropertyCache::create(QmlEngine *engine, const QMetaObject
cache->indexCache.resize(propCount);
for (int ii = propCount - 1; ii >= 0; --ii) {
QMetaProperty p = metaObject->property(ii);
- QString propName = QLatin1String(p.name());
+ QString propName = QString::fromUtf8(p.name());
RData *data = new RData;
data->identifier = enginePriv->objectClass->createPersistentIdentifier(propName);
@@ -172,7 +172,7 @@ QmlPropertyCache *QmlPropertyCache::create(QmlEngine *engine, const QMetaObject
int methodCount = metaObject->methodCount();
for (int ii = methodCount - 1; ii >= 0; --ii) {
QMetaMethod m = metaObject->method(ii);
- QString methodName = QLatin1String(m.signature());
+ QString methodName = QString::fromUtf8(m.signature());
int parenIdx = methodName.indexOf(QLatin1Char('('));
Q_ASSERT(parenIdx != -1);