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:
csoler 2010-06-07 20:40:47 +00:00
parent 27943d2e8c
commit 15f5f1f359
4 changed files with 20 additions and 20 deletions

View File

@ -210,7 +210,7 @@ void MessengerWindow::messengertreeWidgetCostumPopupMenu( QPoint point )
hbox->setSpacing(6); hbox->setSpacing(6);
iconLabel = new QLabel( this ); 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 ); iconLabel->setMaximumSize( iconLabel->frameSize().height() + 24, 24 );
hbox->addWidget(iconLabel); hbox->addWidget(iconLabel);

View File

@ -47,7 +47,7 @@ NATStatus::NATStatus(QWidget *parent)
hbox->addWidget(statusNAT); hbox->addWidget(statusNAT);
iconLabel = new QLabel( this ); 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 // iconLabel doesn't change over time, so we didn't need a minimum size
hbox->addWidget(iconLabel); hbox->addWidget(iconLabel);
@ -72,55 +72,55 @@ void NATStatus::getNATStatus()
// if(config.netUpnpOk) // if(config.netUpnpOk)
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png")); // iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
// iconLabel->setToolTip(tr("UPNP is active.")); // iconLabel->setToolTip(tr("UPNP is active."));
// } // }
// else // else
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png")); // iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
// iconLabel->setToolTip(tr("UPNP NOT FOUND.")); // iconLabel->setToolTip(tr("UPNP NOT FOUND."));
// } // }
// //
// if(config.netExtOk) // if(config.netExtOk)
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png")); // iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
// iconLabel->setToolTip(tr("Stable External IP Address")); // iconLabel->setToolTip(tr("Stable External IP Address"));
// } // }
// else // else
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png")); // iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
// iconLabel->setToolTip(tr("Not Found External Address")); // iconLabel->setToolTip(tr("Not Found External Address"));
// } // }
// //
// if(config.netUdpOk) // if(config.netUdpOk)
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png")); // iconLabel->setPixmap(QPixmap(":/images/yellowled.png"));
// iconLabel->setToolTip(tr("UDP Port is reachable")); // iconLabel->setToolTip(tr("UDP Port is reachable"));
// } // }
// else // else
// { // {
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png")); // iconLabel->setPixmap(QPixmap(":/images/grayled.png"));
// iconLabel->setToolTip(tr("UDP Port is not reachable")); // iconLabel->setToolTip(tr("UDP Port is not reachable"));
// } // }
if (config.netUpnpOk) if (config.netUpnpOk)
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png")); iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
iconLabel->setToolTip(tr("OK | RetroShare Server")); iconLabel->setToolTip(tr("OK | RetroShare Server"));
} }
else if (config.netStunOk || config.netExtraAddressOk) else if (config.netStunOk || config.netExtraAddressOk)
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png")); iconLabel->setPixmap(QPixmap(":/images/greenled.png"));
iconLabel->setToolTip(tr("Internet connection")); iconLabel->setToolTip(tr("Internet connection"));
} }
else if (config.netLocalOk) else if (config.netLocalOk)
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png")); iconLabel->setPixmap(QPixmap(":/images/grayled.png"));
iconLabel->setToolTip(tr("No internet connection")); iconLabel->setToolTip(tr("No internet connection"));
} }
else else
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/redled.png")); iconLabel->setPixmap(QPixmap(":/images/redled.png"));
iconLabel->setToolTip(tr("No local network")); iconLabel->setToolTip(tr("No local network"));
} }

View File

@ -43,7 +43,7 @@ PeerStatus::PeerStatus(QWidget *parent)
hbox->setSpacing(6); hbox->setSpacing(6);
iconLabel = new QLabel( this ); 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 // iconLabel doesn't change over time, so we didn't need a minimum size
hbox->addWidget(iconLabel); hbox->addWidget(iconLabel);
@ -83,11 +83,11 @@ void PeerStatus::getPeerStatus()
if (online > 0) if (online > 0)
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/identity16.png")); iconLabel->setPixmap(QPixmap(":/images/user/identity16.png"));
} }
else else
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/user/identitygray16.png")); iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png"));
} }

View File

@ -43,7 +43,7 @@ RatesStatus::RatesStatus(QWidget *parent)
hbox->setSpacing(6); hbox->setSpacing(6);
iconLabel = new QLabel( this ); 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 // iconLabel doesn't change over time, so we didn't need a minimum size
hbox->addWidget(iconLabel); hbox->addWidget(iconLabel);
@ -78,22 +78,22 @@ void RatesStatus::getRatesStatus()
if( upKb > 0 || downKb < 0 ) if( upKb > 0 || downKb < 0 )
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up1down0.png")); iconLabel->setPixmap(QPixmap(":/images/up1down0.png"));
} }
if( upKb < 0 || downKb > 0 ) if( upKb < 0 || downKb > 0 )
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up0down1.png")); iconLabel->setPixmap(QPixmap(":/images/up0down1.png"));
} }
if( upKb > 0 || downKb > 0 ) if( upKb > 0 || downKb > 0 )
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up1down1.png")); iconLabel->setPixmap(QPixmap(":/images/up1down1.png"));
} }
else else
{ {
iconLabel->setPixmap(QPixmap::QPixmap(":/images/up0down0.png")); iconLabel->setPixmap(QPixmap(":/images/up0down0.png"));
} }