aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-17 10:43:30 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-17 10:43:30 -0300
commitcdd910c7a326af6d87acc6df1c90016c8e30cbc7 (patch)
tree6c13049fc74b0c44d2bbe28dfd1dc212dad1970c /libqmenumodel
parentc805b4887a928b3ee45fdf489f043c87165f46e5 (diff)
downloadqmenumodel-cdd910c7a326af6d87acc6df1c90016c8e30cbc7.tar.gz
qmenumodel-cdd910c7a326af6d87acc6df1c90016c8e30cbc7.tar.bz2
qmenumodel-cdd910c7a326af6d87acc6df1c90016c8e30cbc7.zip
Used utf8 instead of latin1 on QString conversion;
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/converter.cpp b/libqmenumodel/src/converter.cpp
index f7be5d7..c2b8fb1 100644
--- a/libqmenumodel/src/converter.cpp
+++ b/libqmenumodel/src/converter.cpp
@@ -131,7 +131,7 @@ GVariant* Converter::toGVariant(const QVariant &value)
QMapIterator<QString, QVariant> i(value.toMap());
while (i.hasNext()) {
i.next();
- g_variant_builder_add(b, "{sv}", reinterpret_cast<const char*>(i.key().toLatin1().data()), toGVariant(i.value()));
+ g_variant_builder_add(b, "{sv}", i.key().toUtf8().data(), toGVariant(i.value()));
}
result = g_variant_builder_end(b);
g_variant_builder_unref(b);