Beautify statusbar.

Fixed german language.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3734 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-01 00:03:05 +00:00
parent f2609fa3ce
commit 321e218c9a
4 changed files with 116 additions and 74 deletions

View file

@ -38,8 +38,7 @@ DHTStatus::DHTStatus(QWidget *parent)
hbox->setMargin(0);
hbox->setSpacing(6);
statusDHT = new QLabel( tr("<strong>DHT:</strong>"), this );
//statusDHT->setMinimumSize( statusPeers->frameSize().width() + 0, 0 );
statusDHT = new QLabel("<strong>" + tr("DHT") + ":</strong>", this );
hbox->addWidget(statusDHT);
dhtstatusLabel = new QLabel( this );
@ -55,23 +54,19 @@ DHTStatus::DHTStatus(QWidget *parent)
dhtnetworksizeLabel = new QLabel( "0 (0) ",this );
hbox->addWidget(dhtnetworksizeLabel);
hbox->addSpacing(2);
setLayout( hbox );
}
void DHTStatus::getDHTStatus()
{
rsiface->lockData(); /* Lock Interface */
/* now the extra bit .... switch on check boxes */
const RsConfig &config = rsiface->getConfig();
if (config.netDhtOk)
{
dhtstatusLabel->setPixmap(QPixmap(":/images/greenled.png"));
@ -91,10 +86,7 @@ void DHTStatus::getDHTStatus()
}
dhtnetworksizeLabel->setText(dhtsize);
dhtnetworksizeLabel->setToolTip(QString("RetroShare users in DHT (Total DHT users)") );
dhtnetworksizeLabel->setToolTip(tr("RetroShare users in DHT (Total DHT users)") );
rsiface->unlockData(); /* UnLock Interface */
}

View file

@ -42,6 +42,8 @@ NATStatus::NATStatus(QWidget *parent)
// iconLabel doesn't change over time, so we didn't need a minimum size
hbox->addWidget(iconLabel);
hbox->addSpacing(2);
setLayout(hbox);
}