Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qkeysequence.cpp File Reference
#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 1205 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 1594 of file qkeysequence.cpp.

◆ operator<<() [2/2]

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

Definition at line 1637 of file qkeysequence.cpp.

◆ operator>>()

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

Definition at line 1616 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