summaryrefslogtreecommitdiffstats
path: root/src/gui/platform
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-09-21 14:14:46 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-10-11 01:48:16 +0200
commit9ef757ed2917593b94ab84868dcfee812c4d344b (patch)
treeb3f9856f046732defdd50069324a62c25c512214 /src/gui/platform
parentf8f5e2c122eeb1dc4d1fc1984e066bc6d9bd07ec (diff)
Add verbose debug logging for QKeyMapper::possibleKeys()
Generalized from the logging used in the Apple key mapper. Change-Id: I61cc120e31b72995071756961d36f6a7fae14553 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/gui/platform')
-rw-r--r--src/gui/platform/darwin/qapplekeymapper.mm12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gui/platform/darwin/qapplekeymapper.mm b/src/gui/platform/darwin/qapplekeymapper.mm
index 7aefe64c6a..944ae424b5 100644
--- a/src/gui/platform/darwin/qapplekeymapper.mm
+++ b/src/gui/platform/darwin/qapplekeymapper.mm
@@ -541,8 +541,6 @@ QList<QKeyCombination> QAppleKeyMapper::possibleKeyCombinations(const QKeyEvent
{
QList<QKeyCombination> ret;
- qCDebug(lcQpaKeyMapper) << "Computing possible keys for" << event;
-
const auto nativeVirtualKey = event->nativeVirtualKey();
if (!nativeVirtualKey)
return ret;
@@ -579,16 +577,6 @@ QList<QKeyCombination> QAppleKeyMapper::possibleKeyCombinations(const QKeyEvent
}
}
- if (lcQpaKeyMapper().isDebugEnabled()) {
- qCDebug(lcQpaKeyMapper) << "Possible keys:";
- for (auto keyCombination : ret) {
- auto keySequence = QKeySequence(keyCombination);
- qCDebug(lcQpaKeyMapper).verbosity(0) << "\t-"
- << keyCombination << "/" << keySequence << "/"
- << qUtf8Printable(keySequence.toString(QKeySequence::NativeText));
- }
- }
-
return ret;
}