summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorRené J.V. Bertin <rjvbertin@gmail.com>2014-10-06 18:47:01 +0200
committerShawn Rutledge <shawn.rutledge@digia.com>2014-10-09 07:27:30 +0200
commiteb55d48d1035d06408ffe73696223464957aa71d (patch)
tree300e350e1b484cc0bdf0b576bf11982b634cc80c /src/gui
parent7d70583589aee971c7adf101edc8bb4b6f0066aa (diff)
downloadqt4-tools-eb55d48d1035d06408ffe73696223464957aa71d.tar.gz
[OS X]: respect icon visibility preference in system tray menus
Check the `IconVisibleInMenu` switch so that systray menu items only show an icon if the application/user has configured things that way, and not otherwise. Task-number: QTBUG-41348 Change-Id: Ibb7db326fd598ca78cb95c815b5e165de2babeda Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/util/qsystemtrayicon_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qsystemtrayicon_mac.mm b/src/gui/util/qsystemtrayicon_mac.mm
index 07e3ea2aaf..bcb3e07b97 100644
--- a/src/gui/util/qsystemtrayicon_mac.mm
+++ b/src/gui/util/qsystemtrayicon_mac.mm
@@ -532,7 +532,7 @@ private:
[item setState:action->isChecked() ? NSOnState : NSOffState];
[item setToolTip:(NSString*)QCFString::toCFStringRef(action->toolTip())];
const QIcon icon = action->icon();
- if(!icon.isNull()) {
+ if (!icon.isNull() && action->isIconVisibleInMenu()) {
#ifndef QT_MAC_USE_COCOA
const short scale = GetMBarHeight();
#else