mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 09:11:06 -04:00
* Enabled by default to display Friends Avatar on Friendslist
* Changed for RS 0.6 the status icons * beautify the status string which displays after nicknames git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7695 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3ef04a61c9
commit
4cdd83cc89
11 changed files with 39 additions and 12 deletions
|
@ -82,6 +82,25 @@ const char *StatusDefs::imageUser(unsigned int status)
|
|||
return "";
|
||||
}
|
||||
|
||||
const char *StatusDefs::imageStatus(unsigned int status)
|
||||
{
|
||||
switch (status) {
|
||||
case RS_STATUS_OFFLINE:
|
||||
return ":/images/status/user-offline.png";
|
||||
case RS_STATUS_AWAY:
|
||||
return ":/images/status/user-away.png";
|
||||
case RS_STATUS_BUSY:
|
||||
return ":/images/status/user-busy.png";
|
||||
case RS_STATUS_ONLINE:
|
||||
return ":/images/status/user-online.png";
|
||||
case RS_STATUS_INACTIVE:
|
||||
return ":/images/status/user-away-extended.png";
|
||||
}
|
||||
|
||||
std::cerr << "StatusDefs::imageUser: Unknown status requested " << status;
|
||||
return "";
|
||||
}
|
||||
|
||||
QString StatusDefs::tooltip(unsigned int status)
|
||||
{
|
||||
switch (status) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue