diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-11-17 12:48:45 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-11-17 12:48:45 +0300 |
commit | f618ed3dfbf6d17b5f98e6612c069930c22f4e7e (patch) | |
tree | c050d50a697e3f3281ef2df29d19e37cd876013a /src/gui/sslbutton.cpp | |
parent | ef915fb2e5b95424992bef070517d791fee1ae91 (diff) |
gui: Fix some icons in highdpi
QIcon does not need to use Theme::hidpiFileName because QIcon takes care
of the @2x images
Diffstat (limited to 'src/gui/sslbutton.cpp')
-rw-r--r-- | src/gui/sslbutton.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/sslbutton.cpp b/src/gui/sslbutton.cpp index 9c5bad0b1..4a2586519 100644 --- a/src/gui/sslbutton.cpp +++ b/src/gui/sslbutton.cpp @@ -186,13 +186,12 @@ void SslButton::updateAccountState(AccountState *accountState) AccountPtr account = _accountState->account(); if (account->url().scheme() == QLatin1String("https")) { - QPixmap pm(Theme::hidpiFileName(":/client/resources/lock-https.png")); - setIcon(QIcon(pm)); + setIcon(QIcon(QLatin1String(":/client/resources/lock-https.png"))); QSslCipher cipher = account->_sessionCipher; setToolTip(tr("This connection is encrypted using %1 bit %2.\n").arg(cipher.usedBits()).arg(cipher.name())); setMenu(_menu); } else { - setIcon(QIcon(QPixmap(Theme::hidpiFileName(":/client/resources/lock-http.png")))); + setIcon(QIcon(QLatin1String(":/client/resources/lock-http.png"))); setToolTip(tr("This connection is NOT secure as it is not encrypted.\n")); setMenu(0); } |