diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-12 22:53:37 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-12 22:53:37 +0200 |
| commit | 0e4b506f70125669d18b09512d935b226be026f2 (patch) | |
| tree | e6cf63eae83200c6fc92865185518d24cd107828 /examples/GuiClient/mainDialog.cpp | |
| parent | b5df32d8c9b3ce2f866f0fae729b08d0976553a6 (diff) | |
| download | qxmpp-0e4b506f70125669d18b09512d935b226be026f2.tar.gz | |
stop using deprecated methods
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
| -rw-r--r-- | examples/GuiClient/mainDialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp index 0312fc48..62dcf42f 100644 --- a/examples/GuiClient/mainDialog.cpp +++ b/examples/GuiClient/mainDialog.cpp @@ -141,8 +141,8 @@ mainDialog::mainDialog(QWidget *parent): QDialog(parent, Qt::Window), SLOT(presenceTypeChanged(QXmppPresence::Type))); Q_ASSERT(check); check = connect(&m_statusWidget, - SIGNAL(presenceStatusTypeChanged(QXmppPresence::Status::Type)), - SLOT(presenceStatusTypeChanged(QXmppPresence::Status::Type))); + SIGNAL(presenceStatusTypeChanged(QXmppPresence::AvailableStatusType)), + SLOT(presenceStatusTypeChanged(QXmppPresence::AvailableStatusType))); Q_ASSERT(check); check = connect(&m_statusWidget, SIGNAL(avatarChanged(QImage)), @@ -363,7 +363,7 @@ void mainDialog::messageReceived(const QXmppMessage& msg) void mainDialog::statusTextChanged(const QString& status) { QXmppPresence presence = m_xmppClient.clientPresence(); - presence.status().setStatusText(status); + presence.setStatusText(status); addPhotoHash(presence); m_xmppClient.setClientPresence(presence); } @@ -378,7 +378,7 @@ void mainDialog::presenceTypeChanged(QXmppPresence::Type presenceType) { QXmppPresence newPresence = m_xmppClient.clientPresence(); newPresence.setType(presenceType); - newPresence.status().setType(QXmppPresence::Status::Online); + newPresence.setAvailableStatusType(QXmppPresence::Online); addPhotoHash(newPresence); m_xmppClient.setClientPresence(newPresence); } @@ -386,11 +386,11 @@ void mainDialog::presenceTypeChanged(QXmppPresence::Type presenceType) presenceToStatusText(m_xmppClient.clientPresence())); } -void mainDialog::presenceStatusTypeChanged(QXmppPresence::Status::Type statusType) +void mainDialog::presenceStatusTypeChanged(QXmppPresence::AvailableStatusType statusType) { QXmppPresence presence = m_xmppClient.clientPresence(); presence.setType(QXmppPresence::Available); - presence.status().setType(statusType); + presence.setAvailableStatusType(statusType); addPhotoHash(presence); m_xmppClient.setClientPresence(presence); m_statusWidget.setStatusText( @@ -429,7 +429,7 @@ void mainDialog::updateStatusWidget() m_statusWidget.setDisplayName(m_xmppClient.configuration().jidBare()); m_statusWidget.setStatusText(presenceToStatusText(m_xmppClient.clientPresence())); m_statusWidget.setPresenceAndStatusType(m_xmppClient.clientPresence().type(), - m_xmppClient.clientPresence().status().type()); + m_xmppClient.clientPresence().availableStatusType()); } void mainDialog::signIn() |
