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>.
Loading...
Searching...
No Matches
qxkbcommon.cpp File Reference

(86e92972dd1df463f8da859f651ba0eb76dacd50)

#include "qxkbcommon_p.h"
#include <private/qmakearray_p.h>
#include <QtCore/private/qstringiterator_p.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/QMetaMethod>
#include <QtGui/QKeyEvent>
#include <QtGui/private/qguiapplication_p.h>
#include <qpa/qplatforminputcontext.h>
#include <qpa/qplatformintegration.h>
+ Include dependency graph for qxkbcommon.cpp:

Go to the source code of this file.

Classes

struct  xkb2qt
 
struct  Xkb2Qt< Xkb, Qt >
 

Typedefs

typedef struct xkb2qt xkb2qt_t
 

Functions

static QT_BEGIN_NAMESPACE int keysymToQtKey_internal (xkb_keysym_t keysym, Qt::KeyboardModifiers modifiers, xkb_state *state, xkb_keycode_t code, bool superAsMeta, bool hyperAsMeta)
 

Variables

static constexpr const auto KeyTbl
 
static const Qt::KeyboardModifiers ModsTbl []
 

Typedef Documentation

◆ xkb2qt_t

typedef struct xkb2qt xkb2qt_t

Function Documentation

◆ keysymToQtKey_internal()

static int keysymToQtKey_internal ( xkb_keysym_t keysym,
Qt::KeyboardModifiers modifiers,
xkb_state * state,
xkb_keycode_t code,
bool superAsMeta,
bool hyperAsMeta )
static

Definition at line 504 of file qxkbcommon.cpp.

References Qt::ControlModifier, i, QString::isEmpty(), QXkbCommon::isLatin1(), it, Qt::Key_0, Qt::Key_F1, Qt::Key_Hyper_L, Qt::Key_Hyper_R, Qt::Key_Meta, Qt::Key_Super_L, Qt::Key_Super_R, keysym, KeyTbl, QXkbCommon::lookupString(), QXkbCommon::lookupStringNoKeysymTransformations(), qtKey(), QXkbCommon::qxkbcommon_xkb_keysym_to_upper(), state, text, QString::toUpper(), and QString::unicode().

Referenced by QXkbCommon::keysymToQtKey(), and QXkbCommon::possibleKeyCombinations().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ KeyTbl

constexpr const auto KeyTbl
staticconstexpr

Definition at line 47 of file qxkbcommon.cpp.

Referenced by keysymToQtKey_internal(), and QXkbCommon::toKeysym().

◆ ModsTbl