mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
redesign the search Button stylesheet.
added change icon when Friends is not unreachable, git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1726 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c7c9163c2c
commit
1fdc8b6937
7 changed files with 92 additions and 52 deletions
|
@ -41,7 +41,6 @@
|
|||
#include "GenCertDialog.h"
|
||||
#include "gui/connect/ConnectFriendWizard.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include <QTextCodec>
|
||||
|
@ -74,6 +73,7 @@
|
|||
#define IMAGE_OFFLINE ":/images/user/identityoffline24.png"
|
||||
#define IMAGE_OFFLINE2 ":/images/user/identitylightgrey24.png"
|
||||
#define IMAGE_AVAIBLE ":/images/user/identityavaiblecyan24.png"
|
||||
#define IMAGE_UNREACHABLE ":/images/user/identityunreachable24.png"
|
||||
#define IMAGE_CONNECT2 ":/images/reload24.png"
|
||||
|
||||
|
||||
|
@ -338,6 +338,8 @@ void PeersDialog::insertPeers()
|
|||
/* (1) Person */
|
||||
item -> setText( 2, QString::fromStdString(detail.name) + tr(" - ") +
|
||||
QString::fromStdString(rsMsgs->getCustomStateString(detail.id)));
|
||||
item -> setToolTip( 2, QString::fromStdString(detail.name) + tr(" - ") +
|
||||
QString::fromStdString(rsMsgs->getCustomStateString(detail.id)));
|
||||
|
||||
/* (2) Auto Connect */
|
||||
//item -> setText(3, QString::fromStdString(detail.autoconnect));
|
||||
|
@ -404,8 +406,11 @@ void PeersDialog::insertPeers()
|
|||
/* bright green */
|
||||
for(i = 1; i < 8; i++)
|
||||
{
|
||||
item -> setBackground(i,QBrush(Qt::red));
|
||||
item -> setIcon(0,(QIcon(IMAGE_OFFLINE)));
|
||||
//item -> setBackground(i,QBrush(Qt::red));
|
||||
item -> setTextColor(i,(Qt::darkRed));
|
||||
QFont font ;
|
||||
item -> setFont(i,font);
|
||||
item -> setIcon(0,(QIcon(IMAGE_UNREACHABLE)));
|
||||
}
|
||||
}
|
||||
else if (detail.state & RS_PEER_STATE_ONLINE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue