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>
bb10
Tor Arne Vestbø 2020-06-28 13:50:13 +02:00
parent 9fa3cf15c8
commit ae28fbd8cc
1 changed files with 2 additions and 10 deletions

View File

@ -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;