macOS: Show icons in menus on macOS 26 and above

As this is the new system behavior.

Pick-to: 6.8 6.5
Change-Id: Ie33bc70a627133459e26411f4492ea0fe1f07ca4
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 08a17345db)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit d1641d016e)
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-09-11 15:15:09 +02:00
parent 02af14ec14
commit 0b96e51148
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ QVariant QCocoaTheme::themeHint(ThemeHint hint) const
case QPlatformTheme::KeyboardAutoRepeatRate:
return 1.0 / NSEvent.keyRepeatInterval;
case QPlatformTheme::ShowIconsInMenus:
return false;
return QOperatingSystemVersion::current() >= QOperatingSystemVersion::MacOSTahoe;
default:
break;
}