diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-30 12:04:07 +0100 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-30 12:04:07 +0100 |
commit | ed490f271e983060525cd2964cd4203abb8bfdaa (patch) | |
tree | 09ed8edcbcc09f2d0d1b348c9249d84382e9ec40 /libqmenumodel/src/qmenumodel.cpp | |
parent | fef978ee52b1053e5985a3ea43b1b52f60fe6061 (diff) | |
download | qmenumodel-ed490f271e983060525cd2964cd4203abb8bfdaa.tar.gz qmenumodel-ed490f271e983060525cd2964cd4203abb8bfdaa.tar.bz2 qmenumodel-ed490f271e983060525cd2964cd4203abb8bfdaa.zip |
Replaced string convertion from Latin1 to Utf8.
Diffstat (limited to 'libqmenumodel/src/qmenumodel.cpp')
-rw-r--r-- | libqmenumodel/src/qmenumodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp index a45e5ff..f0c2274 100644 --- a/libqmenumodel/src/qmenumodel.cpp +++ b/libqmenumodel/src/qmenumodel.cpp @@ -156,10 +156,10 @@ QVariant QMenuModel::getStringAttribute(const QModelIndex &index, gchar* value = NULL; g_menu_model_get_item_attribute(m_menuModel, index.row(), - attribute.toLatin1(), + attribute.toUtf8().data(), "s", &value); if (value) { - result = QVariant(QString::fromLatin1(value)); + result = QVariant(QString::fromUtf8(value)); g_free(value); } return result; @@ -173,7 +173,7 @@ QVariant QMenuModel::getLink(const QModelIndex &index, link = g_menu_model_get_item_link(m_menuModel, index.row(), - linkName.toLatin1()); + linkName.toUtf8().data()); if (link) { QMenuModel *other = new QMenuModel(link, const_cast<QMenuModel*>(this)); |