mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
Disable the Avatar Label for Private Chat when Friend is offline else enable it.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3383 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
004d88da7e
commit
6a84e7cefa
@ -1174,22 +1174,27 @@ void PopupChatDialog::updateStatus(const QString &peer_id, int status)
|
||||
switch (status) {
|
||||
case RS_STATUS_OFFLINE:
|
||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_offline.png); }");
|
||||
ui.avatarlabel->setEnabled(false);
|
||||
break;
|
||||
|
||||
case RS_STATUS_INACTIVE:
|
||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }");
|
||||
ui.avatarlabel->setEnabled(true);
|
||||
break;
|
||||
|
||||
case RS_STATUS_ONLINE:
|
||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_online.png); }");
|
||||
ui.avatarlabel->setEnabled(true);
|
||||
break;
|
||||
|
||||
case RS_STATUS_AWAY:
|
||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }");
|
||||
ui.avatarlabel->setEnabled(true);
|
||||
break;
|
||||
|
||||
case RS_STATUS_BUSY:
|
||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_busy.png); }");
|
||||
ui.avatarlabel->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user