summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRokas Kupstys <rokups@zoho.com>2017-10-01 12:13:10 +0300
committerRokas Kupstys <rokups@zoho.com>2017-10-01 12:15:38 +0300
commitda6e7c11dc9e387d8cf0009f91c966a3788a98d9 (patch)
tree091b71e20c4cb1b86c993da51da842e925707e7f /include
parentDon't move scrollbar to the bottom when it's active (diff)
downloadnheko-da6e7c11dc9e387d8cf0009f91c966a3788a98d9.tar.xz
Fixes #50.
On KDE desktop icon failed to appear because TrayIcon requested a zero-size rect. Implementing MsgCountComposedIcon::availableSizes() method fixes that.

After icon became visible it was not transparent, and places that should have been transparent contained artifacts likely due to uninitialized memory. Implementing MsgCountComposedIcon::pixmap() which returns a pixmap with alpha channel fixes that.
Diffstat (limited to 'include')
-rw-r--r--include/TrayIcon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/TrayIcon.h b/include/TrayIcon.h

index 2c9020c1..dec3063b 100644 --- a/include/TrayIcon.h +++ b/include/TrayIcon.h
@@ -32,6 +32,8 @@ public: virtual void paint(QPainter *p, const QRect &rect, QIcon::Mode mode, QIcon::State state); virtual QIconEngine *clone() const; + virtual QList<QSize> availableSizes(QIcon::Mode mode, QIcon::State state) const; + virtual QPixmap pixmap(const QSize& size, QIcon::Mode mode, QIcon::State state); int msgCount = 0;