Go to file
Tor Arne Vestbø a92c202b49 macOS: Localize title of edit menu's NSMenuItem via AppKit
In 939b7bfe66 we synced up the NSMenuItem's
title to that of the corresponding NSMenu, as AppKit was observed to use
the NSMenuItem title for its heuristics of when to add dictation and
emoji entries to the menu.

But AppKit's heuristics are based on the localized name of the edit menu,
so we need to follow suit and look up AppKit's own localizations. This
is of course fragile, as we're relying on this localization continuing
to live in the InputManager table, but if that changes we'll just fall
back to using the title from the NSMenu, as we did before.

In addition, AppKit's heuristics also look for menu items in the menu
that match selectors such as copy:, paste:, etc, so even if our lookup
of the localized title fails, the additional heuristics would in most
cases still succeed in detecting the edit menu.

Task-number: QTBUG-53085
Task-number: QTBUG-79565
Pick-to: 6.5
Change-Id: I5e12973b86ab35f10a8f7434bcae8a4cf134ecfd
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2023-04-24 14:20:04 +02:00
.github/workflows
bin
cmake CMake: Store unsanitized plugin type names in module .json files 2023-04-18 09:29:33 +02:00
coin COIN: Add initial set of Debian packaging instructions 2023-04-19 17:11:34 +03:00
config.tests Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
dist
doc Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
examples cube example: always set required state in paintGL 2023-04-20 14:01:22 +02:00
lib
libexec Pass native path in qt-internal-configure-tests 2023-04-17 23:32:34 +02:00
LICENSES Update license specification for PCRE2 2023-03-27 10:55:28 +00:00
mkspecs qmake: Fix infinite make loop if RESOURCES contains nonexistent .qrc 2023-04-17 23:32:34 +02:00
qmake qmake: Don't add dummy empty.lproj localization to macOS bundles 2023-04-20 20:11:02 +02:00
src macOS: Localize title of edit menu's NSMenuItem via AppKit 2023-04-24 14:20:04 +02:00
tests QStandardPaths: de-duplicate some unittests code 2023-04-22 20:04:31 +02:00
util
.cmake.conf Centralize copyright information for Qt 2023-03-20 13:03:44 +01:00
.gitattributes
.gitignore git: ignore ._* files 2023-03-28 10:44:57 +02:00
.lgtm.yml
.tag
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
conanfile.py
config_help.txt SQL plugins: add mimer to the help text 2023-04-18 05:32:34 +08:00
configure
configure.bat
configure.cmake Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
dependencies.yaml
qt_cmdline.cmake Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
sync.profile