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:
joss17 2009-10-30 00:36:33 +00:00
parent 04ecbc5514
commit b8be372c4d
3 changed files with 48 additions and 148 deletions

View file

@ -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)
{