From da2a2821c3befd2df2ef80765653e3aa907a3467 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 24 Aug 2010 13:27:31 +0000 Subject: [PATCH] Added more infos to display on infolabel when Friend's status has changed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3387 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/chat/PopupChatDialog.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index 46c86aaf3..79117d037 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -1166,13 +1166,14 @@ void PopupChatDialog::updateStatus(const QString &peer_id, int status) ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_offline.png); }"); ui.avatarlabel->setEnabled(false); ui.infoframe->setVisible(true); - ui.infolabel->setText( QString::fromStdString(dialogName) + tr(" is Offline") +"\n" + tr("Chat message will be lost and not delivered, write instead a Message.")); + ui.infolabel->setText( QString::fromStdString(dialogName) + tr(" apears to be Offline") +"\n" + tr("Messages will be lost and not delivered, write a rs Mail instead.")); break; case RS_STATUS_INACTIVE: ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }"); ui.avatarlabel->setEnabled(true); - ui.infoframe->setVisible(false); + ui.infoframe->setVisible(true); + ui.infolabel->setText( QString::fromStdString(dialogName) + tr(" answers may not, as the status was set to Idle")); break; case RS_STATUS_ONLINE: @@ -1184,13 +1185,15 @@ void PopupChatDialog::updateStatus(const QString &peer_id, int status) case RS_STATUS_AWAY: ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }"); ui.avatarlabel->setEnabled(true); - ui.infoframe->setVisible(false); + ui.infolabel->setText( QString::fromStdString(dialogName) + tr(" answers may not, as the status was set to Away")); + ui.infoframe->setVisible(true); break; case RS_STATUS_BUSY: ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_busy.png); }"); ui.avatarlabel->setEnabled(true); - ui.infoframe->setVisible(false); + ui.infolabel->setText( QString::fromStdString(dialogName) + tr(" answers may not, as the status was set to Busy")); + ui.infoframe->setVisible(true); break; } }