aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/utils.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-12 22:43:17 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-12 22:43:17 +0200
commitb5df32d8c9b3ce2f866f0fae729b08d0976553a6 (patch)
tree09a5c1c07d08e116ded578f4e5538ae8b4cab1d6 /examples/GuiClient/utils.cpp
parent2e3e1411bfce80d30788fcbdf20d0294ba7b5ad4 (diff)
downloadqxmpp-b5df32d8c9b3ce2f866f0fae729b08d0976553a6.tar.gz
minimum maintenance to get guiclient to compile
Diffstat (limited to 'examples/GuiClient/utils.cpp')
-rw-r--r--examples/GuiClient/utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/GuiClient/utils.cpp b/examples/GuiClient/utils.cpp
index 412dd92e..efc209e4 100644
--- a/examples/GuiClient/utils.cpp
+++ b/examples/GuiClient/utils.cpp
@@ -38,8 +38,7 @@ int comparisonWeightsPresenceStatusType(QXmppPresence::Status::Type statusType)
case QXmppPresence::Status::Away:
case QXmppPresence::Status::XA:
return 2;
- case QXmppPresence::Status::Offline:
- //case QXmppPresence::Status::Invisible:
+ case QXmppPresence::Status::Invisible:
return 3;
default:
return 5;
@@ -75,8 +74,7 @@ QString presenceToStatusText(const QXmppPresence& presence)
{
switch(presence.status().type())
{
- //case QXmppPresence::Status::Invisible:
- case QXmppPresence::Status::Offline:
+ case QXmppPresence::Status::Invisible:
statusText = "Offline";
break;
case QXmppPresence::Status::Online: