From ae28fbd8ccfee304f40c8a79dc6b51b01094a0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 28 Jun 2020 13:50:13 +0200 Subject: 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 --- src/gui/kernel/qshortcutmap.cpp | 12 ++---------- 1 file 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 &ksl, { Q_D(QShortcutMap); QList 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; -- cgit v1.2.3