![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
#include <qxkbcommon_p.h>
 Collaboration diagram for QXkbCommon:Classes | |
| struct | XKBContextDeleter | 
| struct | XKBKeymapDeleter | 
| struct | XKBStateDeleter | 
Public Types | |
| using | ScopedXKBState = std::unique_ptr< struct xkb_state, XKBStateDeleter > | 
| using | ScopedXKBKeymap = std::unique_ptr< struct xkb_keymap, XKBKeymapDeleter > | 
| using | ScopedXKBContext = std::unique_ptr< struct xkb_context, XKBContextDeleter > | 
Static Public Member Functions | |
| static QString | lookupString (struct xkb_state *state, xkb_keycode_t code) | 
| static QString | lookupStringNoKeysymTransformations (xkb_keysym_t keysym) | 
| static QList< xkb_keysym_t > | toKeysym (QKeyEvent *event) | 
| static int | keysymToQtKey (xkb_keysym_t keysym, Qt::KeyboardModifiers modifiers) | 
| static int | keysymToQtKey (xkb_keysym_t keysym, Qt::KeyboardModifiers modifiers, xkb_state *state, xkb_keycode_t code, bool superAsMeta=true, bool hyperAsMeta=true) | 
| static void | xkbcommon_XConvertCase (xkb_keysym_t sym, xkb_keysym_t *lower, xkb_keysym_t *upper) | 
| static xkb_keysym_t | qxkbcommon_xkb_keysym_to_upper (xkb_keysym_t ks) | 
| static Qt::KeyboardModifiers | modifiers (struct xkb_state *state, xkb_keysym_t keysym=XKB_KEY_VoidSymbol) | 
| static QList< int > | possibleKeys (xkb_state *state, const QKeyEvent *event, bool superAsMeta=false, bool hyperAsMeta=false) | 
| static void | verifyHasLatinLayout (xkb_keymap *keymap) | 
| static xkb_keysym_t | lookupLatinKeysym (xkb_state *state, xkb_keycode_t keycode) | 
| static bool | isLatin1 (xkb_keysym_t sym) | 
| static bool | isKeypad (xkb_keysym_t sym) | 
| static void | setXkbContext (QPlatformInputContext *inputContext, struct xkb_context *context) | 
Definition at line 36 of file qxkbcommon_p.h.
| using QXkbCommon::ScopedXKBContext = std::unique_ptr<struct xkb_context, XKBContextDeleter> | 
Definition at line 82 of file qxkbcommon_p.h.
| using QXkbCommon::ScopedXKBKeymap = std::unique_ptr<struct xkb_keymap, XKBKeymapDeleter> | 
Definition at line 81 of file qxkbcommon_p.h.
| using QXkbCommon::ScopedXKBState = std::unique_ptr<struct xkb_state, XKBStateDeleter> | 
Definition at line 80 of file qxkbcommon_p.h.
      
  | 
  inlinestatic | 
Definition at line 65 of file qxkbcommon_p.h.
Referenced by QXcbKeyboard::handleKeyEvent().
 Here is the caller graph for this function:
      
  | 
  inlinestatic | 
Definition at line 62 of file qxkbcommon_p.h.
Referenced by keysymToQtKey_internal(), lookupLatinKeysym(), possibleKeys(), toKeysym(), and verifyHasLatinLayout().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 470 of file qxkbcommon.cpp.
References keysymToQtKey().
Referenced by QIBusPlatformInputContext::forwardKeyEvent(), QtWayland::WindowSystemEventHandler::handleKeyEvent(), QXcbKeyboard::handleKeyEvent(), keysymToQtKey(), QLibInputKeyboard::processKey(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_keysym(), and QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_keysym().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 475 of file qxkbcommon.cpp.
References Qt::ControlModifier, keysymToQtKey_internal(), lookupLatinKeysym(), and state.
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 730 of file qxkbcommon.cpp.
References isLatin1(), layout, and state.
Referenced by keysymToQtKey(), and possibleKeys().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 404 of file qxkbcommon.cpp.
References QVarLengthArray< T, Prealloc >::constData(), QVarLengthArray< T, Prealloc >::data(), QString::fromUtf8(), Q_UNLIKELY, QVarLengthArray< T, Prealloc >::resize(), QVLABaseBase::size(), and state.
Referenced by QtWayland::WindowSystemEventHandler::handleKeyEvent(), QXcbKeyboard::handleKeyEvent(), keysymToQtKey_internal(), and QLibInputKeyboard::processKey().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 415 of file qxkbcommon.cpp.
References QVarLengthArray< T, Prealloc >::constData(), QVarLengthArray< T, Prealloc >::data(), QString::fromUtf8(), Q_UNLIKELY, QVarLengthArray< T, Prealloc >::resize(), and QVLABaseBase::size().
Referenced by QIBusPlatformInputContext::forwardKeyEvent(), keysymToQtKey_internal(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_keysym(), and QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_keysym().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 565 of file qxkbcommon.cpp.
References Qt::AltModifier, Qt::ControlModifier, Qt::KeypadModifier, Qt::MetaModifier, Qt::NoModifier, Qt::ShiftModifier, state, XKB_MOD_NAME_ALT, XKB_MOD_NAME_CTRL, XKB_MOD_NAME_LOGO, and XKB_MOD_NAME_SHIFT.
Referenced by QtWayland::WindowSystemEventHandler::handleKeyEvent(), and QLibInputKeyboard::processKey().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 597 of file qxkbcommon.cpp.
References Qt::AltModifier, Qt::ControlModifier, Qt::GroupSwitchModifier, i, isLatin1(), Qt::KeyboardModifierMask, Qt::KeypadModifier, keysymToQtKey_internal(), lookupLatinKeysym(), Qt::MetaModifier, ModsTbl, Q_ASSERT, Q_FUNC_INFO, qCWarning, qtKey(), Qt::ShiftModifier, shortcut, and state.
Referenced by QXcbKeyboard::possibleKeys(), and QtWaylandClient::QWaylandInputDevice::possibleKeys().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 395 of file qxkbcommon.cpp.
References xkbcommon_XConvertCase().
Referenced by keysymToQtKey_internal().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 752 of file qxkbcommon.cpp.
References context, Qt::DirectConnection, method, QObject::objectName, Q_ARG, Q_ASSERT, qCWarning, and setXkbContext().
Referenced by QXcbKeyboard::initialize(), QtWaylandClient::QWaylandIntegration::reconfigureInputContext(), and setXkbContext().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 429 of file qxkbcommon.cpp.
References QList< T >::append(), QList< T >::isEmpty(), isLatin1(), it, Qt::Key_0, Qt::Key_9, Qt::Key_F1, Qt::Key_F35, Qt::KeypadModifier, KeyTbl, and qtKey().
Referenced by QWaylandTextInputPrivate::sendKeyEvent().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 702 of file qxkbcommon.cpp.
References isLatin1(), layout, and qCDebug.
Referenced by QXcbKeyboard::updateKeymap().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 76 of file qxkbcommon_3rdparty.cpp.
References qt_UCSConvertCase().
Referenced by getUnshiftedXKey(), and qxkbcommon_xkb_keysym_to_upper().
 Here is the call graph for this function:
 Here is the caller graph for this function: