mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added when status message avaible add after your Online status
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2062 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ff8d011ac7
commit
fe08948d9f
@ -432,7 +432,12 @@ void PeersDialog::insertPeers()
|
||||
int i;
|
||||
if (sslDetail.state & RS_PEER_STATE_CONNECTED) {
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||
|
||||
if (rsMsgs->getCustomStateString(sslDetail.id) != "") {
|
||||
gpg_item -> setText(1, tr("Online") + tr(" - ") + QString::fromStdString(rsMsgs->getCustomStateString(sslDetail.id))) ;
|
||||
} else {
|
||||
gpg_item -> setText(1, tr("Online"));
|
||||
}
|
||||
sslItem -> setIcon(0,(QIcon(":/images/connect_established.png")));
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
@ -443,7 +448,13 @@ void PeersDialog::insertPeers()
|
||||
}
|
||||
} else if (sslDetail.state & RS_PEER_STATE_UNREACHABLE) {
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_UNREACHABLE)));
|
||||
|
||||
if (rsMsgs->getCustomStateString(sslDetail.id) != "") {
|
||||
gpg_item -> setText(1, tr("Unreachable") + tr(" - ") + QString::fromStdString(rsMsgs->getCustomStateString(sslDetail.id))) ;
|
||||
} else {
|
||||
gpg_item -> setText(1, tr("Unreachable"));
|
||||
}
|
||||
|
||||
QFont font;
|
||||
font.setBold(false);
|
||||
for(i = 0; i < 3; i++) {
|
||||
@ -454,7 +465,12 @@ void PeersDialog::insertPeers()
|
||||
} else if (sslDetail.state & RS_PEER_STATE_ONLINE) {
|
||||
/* bright green */
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_AVAIBLE)));
|
||||
gpg_item -> setText(1, tr("Avaible"));
|
||||
|
||||
if (rsMsgs->getCustomStateString(sslDetail.id) != "") {
|
||||
gpg_item -> setText(1, tr("Avaible") + tr(" - ") + QString::fromStdString(rsMsgs->getCustomStateString(sslDetail.id))) ;
|
||||
} else {
|
||||
gpg_item -> setText(1, tr("Aviable"));
|
||||
}
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
for(i = 0; i < 3; i++) {
|
||||
@ -465,11 +481,22 @@ void PeersDialog::insertPeers()
|
||||
} else {
|
||||
if (time(NULL) - sslDetail.lastConnect < 3600) {
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_OFFLINE)));
|
||||
|
||||
if (rsMsgs->getCustomStateString(sslDetail.id) != "") {
|
||||
gpg_item -> setText(1, tr("Offline") + tr(" - ") + QString::fromStdString(rsMsgs->getCustomStateString(sslDetail.id))) ;
|
||||
} else {
|
||||
gpg_item -> setText(1, tr("Offline"));
|
||||
}
|
||||
|
||||
} else {
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_OFFLINE2)));
|
||||
|
||||
if (rsMsgs->getCustomStateString(sslDetail.id) != "") {
|
||||
gpg_item -> setText(1, tr("Offline") + tr(" - ") + QString::fromStdString(rsMsgs->getCustomStateString(sslDetail.id))) ;
|
||||
} else {
|
||||
gpg_item -> setText(1, tr("Offline"));
|
||||
}
|
||||
}
|
||||
QFont font;
|
||||
font.setBold(false);
|
||||
for(i = 0; i < 3; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user