mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 02:24:18 -04:00
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:
parent
f2609fa3ce
commit
321e218c9a
4 changed files with 116 additions and 74 deletions
|
@ -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 */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue