summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxvisualitemmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxvisualitemmodel.cpp')
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxvisualitemmodel.cpp b/src/declarative/fx/qfxvisualitemmodel.cpp
index 3a9e5d4..a078da6 100644
--- a/src/declarative/fx/qfxvisualitemmodel.cpp
+++ b/src/declarative/fx/qfxvisualitemmodel.cpp
@@ -275,7 +275,7 @@ public:
int count = object->metaObject()->propertyCount();
for (int ii = 1; ii < count; ++ii) {
const QMetaProperty &prop = object->metaObject()->property(ii);
- m_roleNames.insert(prop.name(), 0);
+ m_roleNames.insert(QString::fromUtf8(prop.name()), 0);
}
}
}
@@ -798,7 +798,7 @@ QFxItem *QFxVisualDataModel::item(int index, const QByteArray &viewId, bool comp
}
if (!item) {
d->m_cache.releaseItem(nobj);
- qmlInfo(d->m_delegate) << "Delegate component must be Item type.";
+ qmlInfo(QFxVisualDataModel::tr("Delegate component must be Item type."), d->m_delegate);
}
return item;