diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-09 19:37:09 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-10 12:17:06 +0200 |
commit | 9ac5273d03c176156596a23d2a88cf95f0b4d6d6 (patch) | |
tree | bed311f7399c0786e0a585fb6d04986e6c5de418 /src/gui/kernel/qkeymapper.cpp | |
parent | f08c15c3de5fd3fde2281dc00db1aecb1fea52f7 (diff) |
Remove unused method QKeyMapper::clearMappings()
The plumbing from QKeyMapper to the platform specific key mappers
via QPA was never done, so this method is unused. The code path
in QKeyMapper that would trigger it would be changeKeyboard(),
but that's already handled in QCocoaKeyMapper, and wouldn't be
initiated from the cross platform code in any case.
Change-Id: Ibc0c419627fc0430d028945038c1f2fbafe42d4b
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/gui/kernel/qkeymapper.cpp')
-rw-r--r-- | src/gui/kernel/qkeymapper.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gui/kernel/qkeymapper.cpp b/src/gui/kernel/qkeymapper.cpp index 274574f561..f0ea66dc79 100644 --- a/src/gui/kernel/qkeymapper.cpp +++ b/src/gui/kernel/qkeymapper.cpp @@ -89,8 +89,6 @@ QList<int> QKeyMapper::possibleKeys(QKeyEvent *e) extern bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event); // in qapplication_*.cpp void QKeyMapper::changeKeyboard() { - instance()->d_func()->clearMappings(); - // ## TODO: Support KeyboardLayoutChange on QPA #if 0 // inform all toplevel widgets of the change @@ -126,11 +124,6 @@ QKeyMapperPrivate::QKeyMapperPrivate() QKeyMapperPrivate::~QKeyMapperPrivate() { - // clearMappings(); -} - -void QKeyMapperPrivate::clearMappings() -{ } QList<int> QKeyMapperPrivate::possibleKeys(QKeyEvent *e) |