mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
changend network icon
set different icon color for avaible git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1143 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
98835897cc
commit
1cc8639305
7 changed files with 14 additions and 3 deletions
|
@ -72,6 +72,8 @@
|
|||
#define IMAGE_ONLINE ":/images/user/identity24.png"
|
||||
#define IMAGE_OFFLINE ":/images/user/identityoffline24.png"
|
||||
#define IMAGE_OFFLINE2 ":/images/user/identitylightgrey24.png"
|
||||
#define IMAGE_AVAIBLE ":/images/user/identityavaiblecyan24.png"
|
||||
#define IMAGE_CONNECT2 ":/images/reload24.png"
|
||||
|
||||
|
||||
/******
|
||||
|
@ -368,8 +370,12 @@ void PeersDialog::insertPeers()
|
|||
/* bright green */
|
||||
for(i = 1; i < 8; i++)
|
||||
{
|
||||
item -> setBackground(i,QBrush(Qt::cyan));
|
||||
item -> setIcon(0,(QIcon(IMAGE_OFFLINE)));
|
||||
//item -> setBackground(i,QBrush(Qt::cyan));
|
||||
item -> setTextColor(i,(Qt::darkCyan));
|
||||
QFont font ;
|
||||
font.setBold(true);
|
||||
item -> setFont(i,font);
|
||||
item -> setIcon(0,(QIcon(IMAGE_AVAIBLE)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -603,6 +609,7 @@ void PeersDialog::connectfriend()
|
|||
if (rsPeers)
|
||||
{
|
||||
rsPeers->connectAttempt(getPeerRsCertId(c));
|
||||
c -> setIcon(0,(QIcon(IMAGE_CONNECT2)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue