From ef7eb6957e233c0c40cdd9939dab557c578cade0 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 21 Jan 2017 20:35:09 +0100 Subject: [PATCH] FlashCookieManager: HighDPI fixes --- src/plugins/FlashCookieManager/fcm_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/FlashCookieManager/fcm_plugin.cpp b/src/plugins/FlashCookieManager/fcm_plugin.cpp index 7ba8b0e0c..94f316031 100644 --- a/src/plugins/FlashCookieManager/fcm_plugin.cpp +++ b/src/plugins/FlashCookieManager/fcm_plugin.cpp @@ -1,6 +1,7 @@ /* ============================================================ * FlashCookieManager plugin for QupZilla * Copyright (C) 2014 S. Razi Alavizadeh +* Copyright (C) 2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -352,8 +353,7 @@ QWidget* FCM_Plugin::createStatusBarIcon(BrowserWindow* mainWindow) ClickableLabel* icon = new ClickableLabel(mainWindow); icon->setCursor(Qt::PointingHandCursor); - QPixmap p(":/flashcookiemanager/data/flash-cookie-manager.png"); - icon->setPixmap(p.scaledToHeight(16)); + icon->setPixmap(QIcon(QSL(":/flashcookiemanager/data/flash-cookie-manager.png")).pixmap(16)); icon->setToolTip(tr("Show Flash Cookie Manager")); connect(icon, SIGNAL(clicked(QPoint)), this, SLOT(showFlashCookieManager()));