From fc3606c18e938d96ff1c9bc3548f3fcc544ceee8 Mon Sep 17 00:00:00 2001 From: Cyril Soler Date: Wed, 20 Jan 2016 14:02:13 -0500 Subject: [PATCH] fixed DHT icon size problem --- retroshare-gui/src/gui/statusbar/dhtstatus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/statusbar/dhtstatus.cpp b/retroshare-gui/src/gui/statusbar/dhtstatus.cpp index 33373327b..936ab0035 100644 --- a/retroshare-gui/src/gui/statusbar/dhtstatus.cpp +++ b/retroshare-gui/src/gui/statusbar/dhtstatus.cpp @@ -55,7 +55,8 @@ DHTStatus::DHTStatus(QWidget *parent) dhtnetworkLabel = new QLabel( this ); dhtnetworkLabel->setVisible(false); - dhtnetworkLabel->setPixmap(QPixmap(":/images/dht32.png")); + int S = QFontMetricsF(dhtnetworkLabel->font()).height(); + dhtnetworkLabel->setPixmap(QPixmap(":/images/dht32.png").scaledToHeight(S,Qt::SmoothTransformation)); hbox->addWidget(dhtnetworkLabel); dhtnetworksizeLabel = new QLabel( "0 (0) ",this );