summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-29 15:42:56 +0200
committerMontel Laurent <[email protected]>2015-08-29 15:42:56 +0200
commit6540f07b2fde378e954cbc528628ab73d1fc751e (patch)
tree95fd13afad8581b3970e2c4bc7789a1e421cecee
parent5b3a46050ff438d48eaacc04af0f84e7709ffa20 (diff)
Fix hdpi support
-rw-r--r--libkdepim/progresswidget/ssllabel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libkdepim/progresswidget/ssllabel.cpp b/libkdepim/progresswidget/ssllabel.cpp
index f577b36..a30d2b9 100644
--- a/libkdepim/progresswidget/ssllabel.cpp
+++ b/libkdepim/progresswidget/ssllabel.cpp
@@ -35,6 +35,7 @@
#include <KIconLoader>
#include <QLabel>
+#include <QIcon>
using namespace KPIM;
@@ -59,12 +60,12 @@ void SSLLabel::setState(State state)
switch (state) {
case Encrypted:
this->setToolTip(i18n("Connection is encrypted"));
- setPixmap(SmallIcon(QStringLiteral("security-high")));
+ setPixmap(QIcon::fromTheme(QStringLiteral("security-high")).pixmap(QSize(16, 16)));
show();
break;
case Unencrypted:
this->setToolTip(i18n("Connection is unencrypted"));
- setPixmap(SmallIcon(QStringLiteral("security-low")));
+ setPixmap(QIcon::fromTheme(QStringLiteral("security-low")).pixmap(QSize(16, 16)));
show();
break;
case Unknown: