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
qkeysequence.cpp File Reference

(41b76ffbd0993997f541436b1235407b00c542f9)

#include "qkeysequence.h"
#include "qkeysequence_p.h"
#include <qpa/qplatformtheme.h>
#include "private/qguiapplication_p.h"
#include "qdebug.h"
#include <QtCore/qhashfunctions.h>
#include "qdatastream.h"
#include "qvariant.h"
#include <algorithm>
#include <q20algorithm.h>
#include "moc_qkeysequence.cpp"
+ Include dependency graph for qkeysequence.cpp:

Go to the source code of this file.

Classes

struct  QModifKeyName
 

Functions

void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic (bool b)
 
 Q_DECLARE_TYPEINFO (QModifKeyName, Q_RELOCATABLE_TYPE)
 
static void addKey (QString &str, const QString &theKey, QKeySequence::SequenceFormat format)
 
QDataStreamoperator<< (QDataStream &s, const QKeySequence &keysequence)
 
QDataStreamoperator>> (QDataStream &s, QKeySequence &keysequence)
 
QDebug operator<< (QDebug dbg, const QKeySequence &p)
 

Variables

static Q_CONSTINIT bool qt_sequence_no_mnemonics = false
 
struct { 
 
   int   key 
 
   const char   name [25] 
 
keyname [] 
 
static constexpr int numKeyNames = sizeof keyname / sizeof *keyname
 

Function Documentation

◆ addKey()

static void addKey ( QString & str,
const QString & theKey,
QKeySequence::SequenceFormat format )
inlinestatic

Definition at line 1187 of file qkeysequence.cpp.

References QString::isEmpty(), QKeySequence::NativeText, str, and QCoreApplication::translate().

Referenced by QKeySequencePrivate::encodeString().

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

◆ operator<<() [1/2]

QDataStream & operator<< ( QDataStream & s,
const QKeySequence & keysequence )
related

Definition at line 1579 of file qkeysequence.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug dbg,
const QKeySequence & p )

Definition at line 1622 of file qkeysequence.cpp.

◆ operator>>()

QDataStream & operator>> ( QDataStream & s,
QKeySequence & keysequence )
related

Definition at line 1601 of file qkeysequence.cpp.

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QModifKeyName ,
Q_RELOCATABLE_TYPE  )

◆ qt_set_sequence_auto_mnemonic()

void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic ( bool b)
related

Definition at line 139 of file qkeysequence.cpp.

Referenced by QWasmIntegration::QWasmIntegration().

+ Here is the caller graph for this function:

Variable Documentation

◆ key

int key

Definition at line 387 of file qkeysequence.cpp.

◆ [struct]

constexpr struct { ... } keyname[]

◆ name

const char name[25]

Definition at line 388 of file qkeysequence.cpp.

◆ numKeyNames

constexpr int numKeyNames = sizeof keyname / sizeof *keyname
staticconstexpr

◆ qt_sequence_no_mnemonics

Q_CONSTINIT bool qt_sequence_no_mnemonics = false
static