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
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 117 of file qwindowskeymapper.cpp.

Member Function Documentation

◆ clearKeys()

void KeyRecorder::clearKeys ( )
inline

Definition at line 171 of file qwindowskeymapper.cpp.

References nrecs.

◆ findKey()

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

Definition at line 135 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 158 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 124 of file qwindowskeymapper.cpp.

Referenced by findKey().

◆ nrecs

int KeyRecorder::nrecs = 0

Definition at line 123 of file qwindowskeymapper.cpp.

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

◆ records

KeyRecord KeyRecorder::records[QT_MAX_KEY_RECORDINGS]

Definition at line 125 of file qwindowskeymapper.cpp.

Referenced by findKey(), and storeKey().


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