summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/python/pythonwriteimports.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2022-09-12 13:35:22 +0200
committerTor Arne Vestbø <[email protected]>2022-09-15 15:27:09 +0200
commitf2a2800b37f91069959dad74d4cd186f72e57695 (patch)
treea9e72b45d5672348b0b0ae3f5b3b11841448169f /src/tools/uic/python/pythonwriteimports.cpp
parentf14b8c829425f54521c3411633dc716490249d34 (diff)
QWSI: Remove dead code for macOS-specific shortcut-override handling
The macOS platform plugin exclusively uses handleExtendedKeyEvent() these days, never the simpler handleKeyEvent(), and always passes false for the tryShortcutOverride argument, so the special-cased code was never executed. No other platform passes the optional tryShortcutOverride argument, so it can be removed completely. If we ever need to bring back this kind of logic it should live in the macOS platform plugin, not in the QWSI layer. We have to keep the existing logic for qt_handleKeyEvent() though, as that's exercised through QTest::simulateEvent(). The next step would be to remove the QWindowSystemInterface::handleShortcutEvent() call in QGuiApplicationPrivate::processKeyEvent() and teach existing platform plugins, as well as the QTest machinery, to handle shortcuts explicitly before sending raw key events. Change-Id: I6eb3fd18c64d1619e33e79f076e25efd299a9ba7 Reviewed-by: Timur Pocheptsov <[email protected]>
Diffstat (limited to 'src/tools/uic/python/pythonwriteimports.cpp')
0 files changed, 0 insertions, 0 deletions