File 0001-Fixed-system-tray-icon-to-a-32x32-pixmap.patch of Package qsynth
From 7ae3131e78a5306191e95ccd0f9ac006d85e5a2b Mon Sep 17 00:00:00 2001
From: rncbc <rncbc@rncbc.org>
Date: Thu, 14 Mar 2024 22:17:43 +0000
Subject: [PATCH] - Fixed system-tray icon to a 32x32 pixmap.
---
src/qsynthSystemTray.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/qsynthSystemTray.cpp b/src/qsynthSystemTray.cpp
index 40a3943..21146bc 100644
--- a/src/qsynthSystemTray.cpp
+++ b/src/qsynthSystemTray.cpp
@@ -1,7 +1,7 @@
// qsynthSystemTray.cpp
//
/****************************************************************************
- Copyright (C) 2003-2022, rncbc aka Rui Nuno Capela. All rights reserved.
+ Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -44,7 +44,7 @@ qsynthSystemTray::qsynthSystemTray ( QWidget *pParent )
#if QT_VERSION < QT_VERSION_CHECK(6, 1, 0)
m_icon = QIcon(":/images/qsynth.png");
#else
- m_icon = pParent->windowIcon();
+ m_icon = pParent->windowIcon().pixmap(32, 32);
#endif
setBackground(Qt::transparent); // also updates pixmap.
QSystemTrayIcon::setIcon(m_icon);
--
2.44.0