![]() |
Qt 6.x
The Qt SDK
|
Translates Windows keys to QWindowSystemInterface events. More...
#include <qwindowskeymapper.h>
Public Member Functions | |
QWindowsKeyMapper () | |
~QWindowsKeyMapper () | |
void | changeKeyboard () |
void | setUseRTLExtensions (bool e) |
bool | useRTLExtensions () const |
void | setDetectAltGrModifier (bool a) |
bool | detectAltGrModifier () const |
bool | translateKeyEvent (QWindow *widget, HWND hwnd, const MSG &msg, LRESULT *result) |
To be called from the window procedure. | |
QWindow * | keyGrabber () const |
void | setKeyGrabber (QWindow *w) |
QList< int > | possibleKeys (const QKeyEvent *e) const |
Static Public Member Functions | |
static Qt::KeyboardModifiers | queryKeyboardModifiers () |
Translates Windows keys to QWindowSystemInterface events.
In addition, handles some special keys to display system menus, etc. The code originates from qkeymapper_win.cpp
.
Definition at line 36 of file qwindowskeymapper.h.
|
explicit |
Definition at line 63 of file qwindowskeymapper.cpp.
References app, QGuiApplication::applicationStateChanged(), changeKeyboard(), clearKeyRecorderOnApplicationInActive(), QObject::connect(), and QCoreApplication::instance().
|
default |
void QWindowsKeyMapper::changeKeyboard | ( | ) |
Definition at line 622 of file qwindowskeymapper.cpp.
References Qt::LeftToRight, and Qt::RightToLeft.
Referenced by QWindowsKeyMapper(), and translateKeyEvent().
|
inline |
Definition at line 49 of file qwindowskeymapper.h.
|
inline |
Definition at line 53 of file qwindowskeymapper.h.
Referenced by QWindowsContext::keyGrabber(), and QWindowsContext::removeWindow().
Definition at line 1356 of file qwindowskeymapper.cpp.
References Qt::dec(), e, QSet< T >::end(), KeyboardLayoutItem::exists, ExtendedKey, Qt::hex(), i, it, Qt::Key_Enter, Qt::Key_Return, Qt::KeyboardModifierMask, ModsTbl, Qt::noshowbase(), NumMods, qCDebug, KeyboardLayoutItem::qtKey, and Qt::showbase().
Referenced by QWindowsContext::possibleKeys().
|
static |
Definition at line 1342 of file qwindowskeymapper.cpp.
References Qt::AltModifier, Qt::ControlModifier, Qt::MetaModifier, Qt::NoModifier, and Qt::ShiftModifier.
Referenced by QWindowsOleDropTarget::DragLeave(), QWindowsIntegration::queryKeyboardModifiers(), QWindowsMouseHandler::translateMouseEvent(), QWindowsPointerHandler::translateMouseEvent(), QWindowsTabletSupport::translateTabletPacketEvent(), and QWindowsMouseHandler::translateTouchEvent().
|
inline |
Definition at line 48 of file qwindowskeymapper.h.
Referenced by QWindowsContext::setDetectAltGrModifier().
Definition at line 54 of file qwindowskeymapper.h.
Referenced by QWindowsContext::removeWindow(), and QWindowsContext::setKeyGrabber().
|
inline |
Definition at line 45 of file qwindowskeymapper.h.
References e.
Referenced by QWindowsContextPrivate::QWindowsContextPrivate().
bool QWindowsKeyMapper::translateKeyEvent | ( | QWindow * | widget, |
HWND | hwnd, | ||
const MSG & | msg, | ||
LRESULT * | result | ||
) |
To be called from the window procedure.
Definition at line 840 of file qwindowskeymapper.cpp.
References changeKeyboard(), and widget.
Referenced by QWindowsContext::windowsProc().
|
inline |
Definition at line 46 of file qwindowskeymapper.h.
Referenced by QWindowsContext::useRTLExtensions().