From 8e76ca0429db552cbf6f51dadd5467a1bc899027 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 14 Nov 2014 12:58:30 +0100 Subject: [PATCH] Qt: Go back to using QIcon functionality for scaling --- src/qt/networkstyle.cpp | 58 ++++++++++++----------------------------- src/qt/networkstyle.h | 6 ++--- src/qt/splashscreen.cpp | 3 +-- 3 files changed, 20 insertions(+), 47 deletions(-) diff --git a/src/qt/networkstyle.cpp b/src/qt/networkstyle.cpp index b8112799df..3762b84842 100644 --- a/src/qt/networkstyle.cpp +++ b/src/qt/networkstyle.cpp @@ -24,52 +24,13 @@ static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*netw // titleAddText needs to be const char* for tr() NetworkStyle::NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText): appName(appName), - iconColorHueShift(iconColorHueShift), - iconColorSaturationReduction(iconColorSaturationReduction), titleAddText(qApp->translate("SplashScreen", titleAddText)) -{ -} - -const NetworkStyle *NetworkStyle::instantiate(const QString &networkId) -{ - for (unsigned x=0; xgetAppIcon(requiredSize); - QPixmap icon(appIcon.pixmap(requiredSize)); + QPixmap icon(networkStyle->getAppIcon().pixmap(requiredSize)); pixPaint.drawPixmap(rectIcon, icon);