7#include <private/qobject_p.h>
10#include <private/qguiapplication_p.h>
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformkeymapper.h>
40 qCDebug(lcQpaKeyMapper).verbosity(3) <<
"Computing possible key combinations for" << e;
43 const auto *platformKeyMapper = platformIntegration->keyMapper();
44 QList<QKeyCombination>
result = platformKeyMapper->possibleKeyCombinations(e);
53#if QT_CONFIG(shortcut)
54 if (lcQpaKeyMapper().isDebugEnabled()) {
55 qCDebug(lcQpaKeyMapper) <<
"Resulting possible key combinations:";
56 for (
auto keyCombination :
result) {
58 qCDebug(lcQpaKeyMapper).verbosity(0) <<
"\t-"
59 << keyCombination <<
"/" << keySequence <<
"/"
78void *QKeyMapper::resolveInterface(
const char *
name,
int revision)
const
92#include "moc_qkeymapper_p.cpp"
static QPlatformIntegration * platformIntegration()
The QKeyEvent class describes a key event.
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifier flags that existed immediately after the event occurred.
QString text() const
Returns the Unicode text that this key generated.
int key() const
Returns the code of the key that was pressed or released.
QKeyCombination keyCombination() const
Returns a QKeyCombination object containing both the key() and the modifiers() carried by this event.
~QKeyMapper()
Destroys the key mapper.
QKeyMapper()
Constructs a new key mapper.
static QList< QKeyCombination > possibleKeys(const QKeyEvent *e)
The QKeySequence class encapsulates a key sequence as used by shortcuts.
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
#define qCDebug(category,...)
#define QT_NATIVE_INTERFACE_RETURN_IF(NativeInterface, baseType)
#define qUtf8Printable(string)