Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
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) |
Qt::KeyboardModifiers | queryKeyboardModifiers () const override |
QList< QKeyCombination > | possibleKeyCombinations (const QKeyEvent *e) const override |
Public Member Functions inherited from QPlatformKeyMapper | |
virtual | ~QPlatformKeyMapper () |
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 38 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 603 of file qwindowskeymapper.cpp.
References Qt::LeftToRight, and Qt::RightToLeft.
Referenced by QWindowsKeyMapper(), and translateKeyEvent().
|
inline |
Definition at line 51 of file qwindowskeymapper.h.
|
inline |
Definition at line 55 of file qwindowskeymapper.h.
Referenced by QWindowsContext::keyGrabber(), and QWindowsContext::removeWindow().
|
overridevirtual |
Reimplemented from QPlatformKeyMapper.
Definition at line 1337 of file qwindowskeymapper.cpp.
References Qt::dec(), QSet< T >::end(), ExtendedKey, QKeyCombination::fromCombined(), Qt::hex(), i, it, Qt::Key_Enter, Qt::Key_Return, QKeyEvent::modifiers(), ModsTbl, QKeyEvent::nativeModifiers(), QKeyEvent::nativeVirtualKey(), Qt::noshowbase(), NumMods, qCDebug, KeyboardLayoutItem::qtKey, and Qt::showbase().
|
overridevirtual |
Reimplemented from QPlatformKeyMapper.
Definition at line 1323 of file qwindowskeymapper.cpp.
References Qt::AltModifier, Qt::ControlModifier, Qt::MetaModifier, Qt::NoModifier, and Qt::ShiftModifier.
|
inline |
Definition at line 50 of file qwindowskeymapper.h.
Referenced by QWindowsContext::setDetectAltGrModifier().
Definition at line 56 of file qwindowskeymapper.h.
Referenced by QWindowsContext::removeWindow(), and QWindowsContext::setKeyGrabber().
|
inline |
Definition at line 47 of file qwindowskeymapper.h.
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 821 of file qwindowskeymapper.cpp.
References changeKeyboard(), and widget.
Referenced by QWindowsContext::windowsProc().
|
inline |
Definition at line 48 of file qwindowskeymapper.h.
Referenced by QWindowsContext::useRTLExtensions().