From 981af6d3e17b531fa8dbfd8733ff2b00787e9465 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 1 Oct 2011 21:00:09 +0000 Subject: [PATCH] Rockbox Utility: make the window icon also include a larger one. On Windows extend the QIcon used as window icon with the bigger Rockbox icon as well. W7 wants a larger one for the taskbar if large icons are enabled, and for the task switcher. Scaling the small one up looks ugly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30630 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/rbutilqt.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 4a3648618e..2238136d20 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -75,6 +75,12 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) QIcon windowIcon(":/icons/rockbox-clef.svg"); this->setWindowIcon(windowIcon); #endif +#if defined(Q_OS_WIN32) + QIcon windowIcon = QIcon(); + windowIcon.addFile(":/icons/rockbox-1.png"); + windowIcon.addFile(":/icons/rockbox-5.png"); + this->setWindowIcon(windowIcon); +#endif #if defined(Q_OS_MACX) // don't translate menu entries that are handled specially on OS X // (Configure, Quit). Qt handles them for us if they use english string.