mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 13:02:27 -04:00
Fix GCC 4.5 errors, which does not accept any more calling the constructor like
this: C::C() For a more detailed and correct explanation see Harald van Dijk's comment here: http://blog.flameeyes.eu/2010/06/02/tinderbox-summary-for-may-2010-gcc-4-5-berkeley-db-5-0-libpng-1-4 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3132 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2d839b031b
commit
4dc30963cb
6 changed files with 21 additions and 21 deletions
|
@ -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);
|
||||
|
||||
|
@ -105,22 +105,22 @@ void NATStatus::getNATStatus()
|
|||
|
||||
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);
|
||||
|
||||
|
@ -79,11 +79,11 @@ void PeerStatus::getPeerStatus()
|
|||
|
||||
if (nOnlineCount > 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…
Add table
Add a link
Reference in a new issue