summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>2011-06-03 05:45:17 -0700
committerMateu Batle <mateu.batle@collabora.co.uk>2011-06-04 15:31:12 -0500
commit01a979e177f7a7f14b88546c73f53ad1d22658b8 (patch)
treec4a0569edbaa4b377b6886f79aa137573a1748ba
parentd74173e80adb1d57838c75c1a41ab1faff5d1994 (diff)
Return UTF-8 that is more suitable for QML to handle extended characters
-rw-r--r--TelepathyQt4Yell/Models/contact-model-item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TelepathyQt4Yell/Models/contact-model-item.cpp b/TelepathyQt4Yell/Models/contact-model-item.cpp
index 564d831..f8cb96f 100644
--- a/TelepathyQt4Yell/Models/contact-model-item.cpp
+++ b/TelepathyQt4Yell/Models/contact-model-item.cpp
@@ -105,13 +105,13 @@ QVariant ContactModelItem::data(int role) const
return mPriv->mContact->id();
case Qt::DisplayRole:
case AccountsModel::AliasRole:
- return mPriv->mContact->alias();
+ return mPriv->mContact->alias().toUtf8();
case AccountsModel::PresenceStatusRole:
return mPriv->mContact->presence().status();
case AccountsModel::PresenceTypeRole:
return mPriv->mContact->presence().type();
case AccountsModel::PresenceMessageRole:
- return mPriv->mContact->presence().statusMessage();
+ return mPriv->mContact->presence().statusMessage().toUtf8();
case AccountsModel::SubscriptionStateRole:
return mPriv->mContact->subscriptionState();
case AccountsModel::PublishStateRole: