diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-13 07:35:05 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-13 07:35:05 +0200 |
| commit | 1b8830c62a4b3fec74c5515ec4e9137b256e3e7a (patch) | |
| tree | a4bd1854922844b8a860f21c7d8b1c449277c335 /examples/GuiClient/utils.cpp | |
| parent | 07dc81d9793a40b2cc8aef435597451434c08b1d (diff) | |
| download | qxmpp-1b8830c62a4b3fec74c5515ec4e9137b256e3e7a.tar.gz | |
replace deprecated functions
Diffstat (limited to 'examples/GuiClient/utils.cpp')
| -rw-r--r-- | examples/GuiClient/utils.cpp | 4 |
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"; |
