[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] libkdepim/src/progresswidget: Don't hardcode icon size
From:       Dan_Vrátil <dvratil () redhat ! com>
Date:       2015-10-05 16:24:41
Message-ID: E1Zj8Z7-00025x-0v () scm ! kde ! org
[Download RAW message or body]

Git commit c45035f3618b1c147e66824788f282a8aa402fd7 by Dan Vr=C3=A1til.
Committed on 05/10/2015 at 16:24.
Pushed by dvratil into branch 'master'.

Don't hardcode icon size

M  +2    -2    libkdepim/src/progresswidget/ssllabel.cpp

http://commits.kde.org/kdepim/c45035f3618b1c147e66824788f282a8aa402fd7

diff --git a/libkdepim/src/progresswidget/ssllabel.cpp b/libkdepim/src/prog=
resswidget/ssllabel.cpp
index a30d2b9..ea305ad 100644
--- a/libkdepim/src/progresswidget/ssllabel.cpp
+++ b/libkdepim/src/progresswidget/ssllabel.cpp
@@ -60,12 +60,12 @@ void SSLLabel::setState(State state)
     switch (state) {
     case Encrypted:
         this->setToolTip(i18n("Connection is encrypted"));
-        setPixmap(QIcon::fromTheme(QStringLiteral("security-high")).pixmap=
(QSize(16, 16)));
+        setPixmap(QIcon::fromTheme(QStringLiteral("security-high")).pixmap=
(IconSize(KIconLoader::Small)));
         show();
         break;
     case Unencrypted:
         this->setToolTip(i18n("Connection is unencrypted"));
-        setPixmap(QIcon::fromTheme(QStringLiteral("security-low")).pixmap(=
QSize(16, 16)));
+        setPixmap(QIcon::fromTheme(QStringLiteral("security-low")).pixmap(=
IconSize(KIconLoader::Small)));
         show();
         break;
     case Unknown:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic