aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/utils.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 07:35:05 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 07:35:05 +0200
commit1b8830c62a4b3fec74c5515ec4e9137b256e3e7a (patch)
treea4bd1854922844b8a860f21c7d8b1c449277c335 /examples/GuiClient/utils.cpp
parent07dc81d9793a40b2cc8aef435597451434c08b1d (diff)
downloadqxmpp-1b8830c62a4b3fec74c5515ec4e9137b256e3e7a.tar.gz
replace deprecated functions
Diffstat (limited to 'examples/GuiClient/utils.cpp')
-rw-r--r--examples/GuiClient/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/GuiClient/utils.cpp b/examples/GuiClient/utils.cpp
index a1a47563..e50cdcb8 100644
--- a/examples/GuiClient/utils.cpp
+++ b/examples/GuiClient/utils.cpp
@@ -67,12 +67,12 @@ int comparisonWeightsPresenceType(QXmppPresence::Type type)
QString presenceToStatusText(const QXmppPresence& presence)
{
- QString statusText = presence.status().statusText();
+ QString statusText = presence.statusText();
if(statusText.isEmpty())
{
if(presence.type() == QXmppPresence::Available)
{
- switch(presence.status().type())
+ switch(presence.availableStatusType())
{
case QXmppPresence::Invisible:
statusText = "Offline";