fixed DHT status icon sizes and added tooltip

This commit is contained in:
csoler 2016-01-19 22:01:26 -05:00
parent 37204d768e
commit a2d8cc84fd

View File

@ -40,10 +40,12 @@ DHTStatus::DHTStatus(QWidget *parent)
hbox->setSpacing(6); hbox->setSpacing(6);
statusDHT = new QLabel("<strong>" + tr("DHT") + ":</strong>", this ); statusDHT = new QLabel("<strong>" + tr("DHT") + ":</strong>", this );
statusDHT->setToolTip(tr("<p>Retroshare uses Bittorrent's DHT as a proxy for connexions. It does not \"store\" your IP in the DHT. Instead the DHT is used by your friends to get in \
contact to you when processing requests. The status bullet will turn green as soon as Retroshare is able to find one of your friends using DHT look-ups.</p>")) ;
hbox->addWidget(statusDHT); hbox->addWidget(statusDHT);
dhtstatusLabel = new QLabel( this ); dhtstatusLabel = new QLabel( this );
dhtstatusLabel->setPixmap(QPixmap(":/images/grayled.png")); dhtstatusLabel->setPixmap(QPixmap(":/icons/bullet_grey_128.png"));
hbox->addWidget(dhtstatusLabel); hbox->addWidget(dhtstatusLabel);
spaceLabel = new QLabel( "|", this ); spaceLabel = new QLabel( "|", this );
@ -52,7 +54,7 @@ DHTStatus::DHTStatus(QWidget *parent)
dhtnetworkLabel = new QLabel( this ); dhtnetworkLabel = new QLabel( this );
dhtnetworkLabel->setVisible(false); dhtnetworkLabel->setVisible(false);
dhtnetworkLabel->setPixmap(QPixmap(":/images/dht16.png")); dhtnetworkLabel->setPixmap(QPixmap(":/images/dht32.png"));
hbox->addWidget(dhtnetworkLabel); hbox->addWidget(dhtnetworkLabel);
dhtnetworksizeLabel = new QLabel( "0 (0) ",this ); dhtnetworksizeLabel = new QLabel( "0 (0) ",this );