45 #include <private/qobject_p.h> 92 instance()->d_func()->clearMappings();
97 for (
int i = 0; i < list.
size(); ++i) {
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
const QChar at(int i) const
Returns the character at the given index position in the string.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
quint32 nativeScanCode() const
Returns the native scan code of the key event.
~QKeyMapper()
Destroys the key mapper.
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifier flags that existed immediately after the event occurred.
static QList< int > possibleKeys(QKeyEvent *e)
int key() const
Returns the code of the key that was pressed or released.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const T & at(int i) const
Returns the item at index position i in the list.
static QKeyMapper * instance()
Returns the pointer to the single instance of QKeyMapper in the application.
static QWidgetList topLevelWidgets()
Returns a list of the top-level widgets (windows) in the application.
QString text() const
Returns the Unicode text that this key generated.
static void changeKeyboard()
int size() const
Returns the number of items in the list.
The QEvent class is the base class of all event classes.
friend QKeyMapperPrivate * qt_keymapper_private()
bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event)
QKeyMapper()
Constructs a new key mapper.