qt5base-lts/src/widgets
Tor Arne Vestbø 842dbca617 macOS: Detect menu bar roles for untranslated menu titles as well
If an application added an "About" menu action, and then loaded
the qtbase translations, we would try to match the incoming menu
title ("About") against QCoreApplication::translate("QCocoaMenuItem",
"About"), which since qtbase provides translation in the QCocoaMenuItem
context would fail, and we would not detect the menu item role
successfully.

For this to work, the application developer would need to add their
own translations for every menu item, and these translations would
have to match the QCocoaMenuItem translations in qtbase.

By also comparing the menu titles against the untranslated heuristics
we now account for the situation that the app has not translated
its menu items.

If the app does add translations of its menu items these still need
to match the QCocoaMenuItem context translations.

Change-Id: Ic2f019cd42b7e080187f9738840f84b0cec239df
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-05-16 20:09:38 +02:00
..
accessible a11y: Don't add scrollbar container as a11y child if scroll bar is re-parented 2023-05-10 02:20:18 +02:00
compat Fix build with -no-feature-menubar 2023-01-17 19:59:36 +09:00
dialogs Remove the "classwizard" example 2023-05-16 18:33:18 +02:00
doc Convert "extension" dialog example into snippets 2023-05-16 18:33:18 +02:00
effects Widgets: Deactivate effect on destruction 2022-12-14 19:38:42 +00:00
graphicsview Doc: Remove duplicate words 2023-02-28 16:53:10 +00:00
itemviews Use boolean to indicate QTableWidgetItem is header item 2023-05-05 05:28:19 +00:00
kernel Don't grab QWhatsThis background on Windows 2023-05-16 15:55:49 +00:00
styles QStyleSheetStyle: avoid #define ceil() 2023-05-11 12:47:53 +02:00
util QCompleter::setPopup() - refactor and cleanup 2023-03-14 21:15:31 +01:00
widgets macOS: Detect menu bar roles for untranslated menu titles as well 2023-05-16 20:09:38 +02:00
CMakeLists.txt Use LANGUAGE OBJCXX rather than COMPILE_FLAGS "-x objective-c++" 2023-04-13 14:36:26 +02:00
configure.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
Qt6WidgetsMacros.cmake Remove the Unnecessary CMake Module, include(CMakeParseArguments) 2022-10-25 20:14:35 +02:00
qt_cmdline.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
QtWidgets.dynlist