Fix build with -no-feature-shortcut

Change-Id: I43b95991fcf37ac8b125b176a59518e6a81e11dc
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tasuku Suzuki 2023-10-22 12:43:14 +09:00
parent a8118caad6
commit 2db7a5ebfb

View File

@ -50,6 +50,7 @@ QList<QKeyCombination> QKeyMapper::possibleKeys(const QKeyEvent *e)
result << (Qt::Key(e->text().at(0).unicode()) | e->modifiers());
}
#if QT_CONFIG(shortcut)
if (lcQpaKeyMapper().isDebugEnabled()) {
qCDebug(lcQpaKeyMapper) << "Resulting possible key combinations:";
for (auto keyCombination : result) {
@ -59,6 +60,7 @@ QList<QKeyCombination> QKeyMapper::possibleKeys(const QKeyEvent *e)
<< qUtf8Printable(keySequence.toString(QKeySequence::NativeText));
}
}
#endif
return result;
}