Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KeyRecorder Struct Reference
+ Collaboration diagram for KeyRecorder:

Public Member Functions

KeyRecordfindKey (int code, bool remove)
 
void storeKey (int code, int ascii, int state, const QString &text)
 
void clearKeys ()
 

Public Attributes

int nrecs = 0
 
KeyRecord deleted_record
 
KeyRecord records [QT_MAX_KEY_RECORDINGS]
 

Detailed Description

Definition at line 109 of file qwindowskeymapper.cpp.

Member Function Documentation

◆ clearKeys()

void KeyRecorder::clearKeys ( )
inline

Definition at line 163 of file qwindowskeymapper.cpp.

References nrecs.

Referenced by clearKeyRecorderOnApplicationInActive().

+ Here is the caller graph for this function:

◆ findKey()

KeyRecord * KeyRecorder::findKey ( int  code,
bool  remove 
)
inline

Definition at line 127 of file qwindowskeymapper.cpp.

References deleted_record, i, nrecs, records, and remove().

+ Here is the call graph for this function:

◆ storeKey()

void KeyRecorder::storeKey ( int  code,
int  ascii,
int  state,
const QString text 
)
inline

Definition at line 150 of file qwindowskeymapper.cpp.

References nrecs, Q_ASSERT_X, QT_MAX_KEY_RECORDINGS, qWarning, records, state, and text.

Member Data Documentation

◆ deleted_record

KeyRecord KeyRecorder::deleted_record

Definition at line 116 of file qwindowskeymapper.cpp.

Referenced by findKey().

◆ nrecs

int KeyRecorder::nrecs = 0

Definition at line 115 of file qwindowskeymapper.cpp.

Referenced by clearKeys(), findKey(), and storeKey().

◆ records

KeyRecord KeyRecorder::records[QT_MAX_KEY_RECORDINGS]

Definition at line 117 of file qwindowskeymapper.cpp.

Referenced by findKey(), and storeKey().


The documentation for this struct was generated from the following file: