diff options
| author | Jocelyn Turcotte <jturcotte@woboq.com> | 2015-02-24 17:02:02 +0100 |
|---|---|---|
| committer | Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com> | 2015-03-18 20:12:18 +0000 |
| commit | ee7fea33383726f0bb72e8082a357820e3ee3675 (patch) | |
| tree | c3f6e7a59aaf4cf7a7155884fe5755aba5583991 /src/network/socket/qhttpsocketengine.cpp | |
| parent | e610ef8c8d156f8e70a51c719458eaea1b2266a8 (diff) | |
OSX Fix disapearing tray icon
It would happen together with an error:
QPainter::begin: Paint device returned engine == 0
and would be caused by the size provided to QIcon::pixmap being empty,
itself caused by the availableSizes list being empty for the Selected
mode.
This bug was most often hidden by the fact that the Selected icon mode
was not triggered properly since we usually only set menuVisible after
calling updateIcon, and most of the time when it did, we would overwrite
it right after with a Normal mode icon.
Fix the issue by disabling the broken feature completely since the
default Selected icon is grayed out while tray icons are now usually
black (or white when selected). To support the dark menu bar mode on
10.10 we'll need to use NSImage's setTemplate anyway and that
knowing in advance if we can invert the colors ourselves would also
better solve the menuVisible usecase.
Task-number: QTBUG-42910
Change-Id: If9ec9659af28ecceb841bfc2f11721e6029fe891
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'src/network/socket/qhttpsocketengine.cpp')
0 files changed, 0 insertions, 0 deletions
