Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qkeysequence.cpp File Reference

(e9dbc016e133e881ffb4d9994735c15c96699e0f)

#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)
size_t qHash (const QKeySequence &key, size_t seed)
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()

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

Definition at line 1208 of file qkeysequence.cpp.

◆ operator<<() [1/2]

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

Definition at line 1595 of file qkeysequence.cpp.

◆ operator<<() [2/2]

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

Definition at line 1638 of file qkeysequence.cpp.

◆ operator>>()

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

Definition at line 1617 of file qkeysequence.cpp.

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QModifKeyName ,
Q_RELOCATABLE_TYPE  )

◆ qHash()

size_t qHash ( const QKeySequence & key,
size_t seed )
noexcept
Since
5.6 \qhashold{QKeySequence}

Definition at line 1436 of file qkeysequence.cpp.

◆ qt_set_sequence_auto_mnemonic()

QT_BEGIN_NAMESPACE void 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 384 of file qkeysequence.cpp.

◆ [struct]

constexpr struct { ... } keyname

◆ name

const char name[25]

Definition at line 385 of file qkeysequence.cpp.

◆ numKeyNames

constexpr int numKeyNames = sizeof keyname / sizeof *keyname
staticconstexpr

Definition at line 680 of file qkeysequence.cpp.

◆ qt_sequence_no_mnemonics

Q_CONSTINIT bool qt_sequence_no_mnemonics = false
static

Definition at line 120 of file qkeysequence.cpp.