mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
changed net status gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1753 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
04ecbc5514
commit
b8be372c4d
3 changed files with 48 additions and 148 deletions
|
@ -70,38 +70,38 @@ void NATStatus::getNATStatus()
|
|||
/* now the extra bit .... switch on check boxes */
|
||||
const RsConfig &config = rsiface->getConfig();
|
||||
|
||||
if(config.netUpnpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("UPNP is active."));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("UPNP NOT FOUND."));
|
||||
}
|
||||
|
||||
if(config.netExtOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("Stable External IP Address"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("Not Found External Address"));
|
||||
}
|
||||
|
||||
if(config.netUdpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("UDP Port is reachable"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
}
|
||||
// if(config.netUpnpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP is active."));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP NOT FOUND."));
|
||||
// }
|
||||
//
|
||||
// if(config.netExtOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("Stable External IP Address"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("Not Found External Address"));
|
||||
// }
|
||||
//
|
||||
// if(config.netUdpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is reachable"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
// }
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue