|
|
|
@ -4,8 +4,6 @@
@@ -4,8 +4,6 @@
|
|
|
|
|
#include <QMenu> |
|
|
|
|
#include <QFile> |
|
|
|
|
#include <QDebug> |
|
|
|
|
#include <QPainter> |
|
|
|
|
#include <QBitmap> |
|
|
|
|
#include "src/misc/settings.h" |
|
|
|
|
|
|
|
|
|
SystemTrayIcon::SystemTrayIcon() |
|
|
|
@ -390,16 +388,6 @@ void SystemTrayIcon::setIcon(QIcon &icon)
@@ -390,16 +388,6 @@ void SystemTrayIcon::setIcon(QIcon &icon)
|
|
|
|
|
#endif |
|
|
|
|
else if (backendType == SystrayBackendType::Qt) |
|
|
|
|
{ |
|
|
|
|
#ifdef Q_OS_MAC |
|
|
|
|
// Since Qt doesn't render SVG tray icons for OSX
|
|
|
|
|
// we are forced to do this sort of a workaround!
|
|
|
|
|
QPixmap quirk(64, 64); |
|
|
|
|
quirk.fill(Qt::transparent); |
|
|
|
|
QPainter quirker(&quirk); |
|
|
|
|
icon.paint(&quirker, 0, 0, 64, 64); |
|
|
|
|
icon = QIcon(quirk); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
qtIcon->setIcon(icon); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|