diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-28 13:50:13 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-30 10:11:23 +0200 |
commit | ae28fbd8ccfee304f40c8a79dc6b51b01094a0bc (patch) | |
tree | 1629df0b95223928229dab8fd1b730634d474d30 | |
parent | 9fa3cf15c8500fba5bbb861f1925160815ae2afd (diff) |
Fix QShortcutMap::createNewSequences debug logging
We don't need to include the possible keys in the log output
as that's handled by the call site in QShortcutMap::find.
Change-Id: Ie0635f63a4304fde40a8b671385518dd1e42e2dc
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r-- | src/gui/kernel/qshortcutmap.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui/kernel/qshortcutmap.cpp b/src/gui/kernel/qshortcutmap.cpp index 6039101cf4..2152418641 100644 --- a/src/gui/kernel/qshortcutmap.cpp +++ b/src/gui/kernel/qshortcutmap.cpp @@ -520,16 +520,8 @@ void QShortcutMap::createNewSequences(QKeyEvent *e, QVector<QKeySequence> &ksl, { Q_D(QShortcutMap); QList<int> possibleKeys = QKeyMapper::possibleKeys(e); - if (lcShortcutMap().isDebugEnabled()) { - qCDebug(lcShortcutMap).nospace() << __FUNCTION__ << '(' << e << ", ignoredModifiers=" - << Qt::KeyboardModifiers(ignoredModifiers) << "), possibleKeys=("; - for (int i = 0, size = possibleKeys.size(); i < size; ++i) { - if (i) - qCDebug(lcShortcutMap).nospace() << ", "; - qCDebug(lcShortcutMap).nospace() << QKeySequence(possibleKeys.at(i)); - } - qCDebug(lcShortcutMap).nospace() << ')'; - } + qCDebug(lcShortcutMap) << "Creating new sequences for" << e + << "with ignoredModifiers=" << Qt::KeyboardModifiers(ignoredModifiers); int pkTotal = possibleKeys.count(); if (!pkTotal) return; |