mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-03 04:09:31 -05:00
fixed compilation on archlinux
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3083 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
27943d2e8c
commit
15f5f1f359
@ -210,7 +210,7 @@ void MessengerWindow::messengertreeWidgetCostumPopupMenu( QPoint point )
|
||||
hbox->setSpacing(6);
|
||||
|
||||
iconLabel = new QLabel( this );
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/friends24.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/friends24.png"));
|
||||
iconLabel->setMaximumSize( iconLabel->frameSize().height() + 24, 24 );
|
||||
hbox->addWidget(iconLabel);
|
||||
|
||||
|
@ -47,7 +47,7 @@ NATStatus::NATStatus(QWidget *parent)
|
||||
hbox->addWidget(statusNAT);
|
||||
|
||||
iconLabel = new QLabel( this );
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/grayled.png"));
|
||||
// iconLabel doesn't change over time, so we didn't need a minimum size
|
||||
hbox->addWidget(iconLabel);
|
||||
|
||||
@ -72,55 +72,55 @@ void NATStatus::getNATStatus()
|
||||
|
||||
// if(config.netUpnpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP is active."));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP NOT FOUND."));
|
||||
// }
|
||||
//
|
||||
// if(config.netExtOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("Stable External IP Address"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("Not Found External Address"));
|
||||
// }
|
||||
//
|
||||
// if(config.netUdpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is reachable"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png"));
|
||||
// iconLabel->setPixmap(QPixmap(":/images/grayled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
// }
|
||||
|
||||
if (config.netUpnpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("OK | RetroShare Server"));
|
||||
}
|
||||
else if (config.netStunOk || config.netExtraAddressOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("Internet connection"));
|
||||
}
|
||||
else if (config.netLocalOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/grayled.png"));
|
||||
iconLabel->setToolTip(tr("No internet connection"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/redled.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/redled.png"));
|
||||
iconLabel->setToolTip(tr("No local network"));
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ PeerStatus::PeerStatus(QWidget *parent)
|
||||
hbox->setSpacing(6);
|
||||
|
||||
iconLabel = new QLabel( this );
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/identitygray16.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png"));
|
||||
// iconLabel doesn't change over time, so we didn't need a minimum size
|
||||
hbox->addWidget(iconLabel);
|
||||
|
||||
@ -83,11 +83,11 @@ void PeerStatus::getPeerStatus()
|
||||
|
||||
if (online > 0)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/identity16.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/identity16.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/identitygray16.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ RatesStatus::RatesStatus(QWidget *parent)
|
||||
hbox->setSpacing(6);
|
||||
|
||||
iconLabel = new QLabel( this );
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up0down0.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/up0down0.png"));
|
||||
// iconLabel doesn't change over time, so we didn't need a minimum size
|
||||
hbox->addWidget(iconLabel);
|
||||
|
||||
@ -78,22 +78,22 @@ void RatesStatus::getRatesStatus()
|
||||
|
||||
if( upKb > 0 || downKb < 0 )
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up1down0.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/up1down0.png"));
|
||||
}
|
||||
|
||||
if( upKb < 0 || downKb > 0 )
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up0down1.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/up0down1.png"));
|
||||
}
|
||||
|
||||
if( upKb > 0 || downKb > 0 )
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up1down1.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/up1down1.png"));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up0down0.png"));
|
||||
iconLabel->setPixmap(QPixmap(":/images/up0down0.png"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user