From 1b8830c62a4b3fec74c5515ec4e9137b256e3e7a Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 13 Sep 2012 07:35:05 +0200 Subject: replace deprecated functions --- examples/GuiClient/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/GuiClient/utils.cpp') 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"; -- cgit v1.2.3