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
QKeySequencePrivate Class Reference

#include <qkeysequence_p.h>

+ Collaboration diagram for QKeySequencePrivate:

Public Member Functions

constexpr QKeySequencePrivate ()
 
 QKeySequencePrivate (const QKeySequencePrivate &copy)
 

Static Public Member Functions

static QString encodeString (QKeyCombination keyCombination, QKeySequence::SequenceFormat format)
 
static Q_GUI_EXPORT QString keyName (Qt::Key key, QKeySequence::SequenceFormat format)
 
static QKeyCombination decodeString (QString accel, QKeySequence::SequenceFormat format)
 

Public Attributes

QAtomicInt ref
 
int key [MaxKeyCount]
 

Static Public Attributes

static constexpr int MaxKeyCount = 4
 

Detailed Description

Definition at line 35 of file qkeysequence_p.h.

Constructor & Destructor Documentation

◆ QKeySequencePrivate() [1/2]

constexpr QKeySequencePrivate::QKeySequencePrivate ( )
inlineconstexpr

Definition at line 39 of file qkeysequence_p.h.

◆ QKeySequencePrivate() [2/2]

QKeySequencePrivate::QKeySequencePrivate ( const QKeySequencePrivate & copy)
inline

Definition at line 40 of file qkeysequence_p.h.

References copy(), MaxKeyCount, and QT_MAKE_CHECKED_ARRAY_ITERATOR.

+ Here is the call graph for this function:

Member Function Documentation

◆ decodeString()

QKeyCombination QKeySequencePrivate::decodeString ( QString accel,
QKeySequence::SequenceFormat format )
static

Definition at line 1039 of file qkeysequence.cpp.

References Qt::AA_MacDontSwapCtrlAndMeta, Qt::ALT, append(), Qt::CTRL, QKeyCombination::fromCombined(), QString::fromLatin1(), i, j, Qt::Key_F1, Qt::Key_unknown, keyName(), keyname, Qt::KeypadModifier, Qt::META, QStringView::mid(), QKeySequence::NativeText, numKeyNames, Q_ASSERT, qApp, QModifKeyName::qt_key, qtKey(), ret, Qt::SHIFT, sub, and QCoreApplication::translate().

+ Here is the call graph for this function:

◆ encodeString()

QString QKeySequencePrivate::encodeString ( QKeyCombination keyCombination,
QKeySequence::SequenceFormat format )
static

Definition at line 1201 of file qkeysequence.cpp.

References Qt::AA_MacDontSwapCtrlAndMeta, addKey(), Qt::ALT, Qt::AltModifier, Qt::ControlModifier, Qt::CTRL, QString::fromLatin1(), i, QKeyCombination::key(), Qt::Key_Alt, Qt::Key_Control, Qt::Key_Meta, Qt::Key_Shift, Qt::Key_unknown, QKeyCombination::keyboardModifiers(), keyName(), Qt::KeypadModifier, Qt::META, Qt::MetaModifier, QKeySequence::NativeText, qApp, Qt::SHIFT, Qt::ShiftModifier, QKeyCombination::toCombined(), and QCoreApplication::translate().

Referenced by QKeySequence::toString().

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

◆ keyName()

QString QKeySequencePrivate::keyName ( Qt::Key key,
QKeySequence::SequenceFormat format )
static

Returns the text representation of the key key, which can be used i.e. when the sequence is serialized. This does not take modifiers into account (see encodeString() for a version that does).

This static method is used by encodeString() and by the D-Bus menu exporter.

Definition at line 1275 of file qkeysequence.cpp.

References ch, QString::fromLatin1(), i, Qt::Key_Escape, Qt::Key_F1, Qt::Key_F35, Qt::Key_Space, keyname, QKeySequence::NativeText, numKeyNames, QString::toUpper(), and QCoreApplication::translate().

Referenced by QDBusMenuItem::convertKeySequence(), and encodeString().

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

Member Data Documentation

◆ key

◆ MaxKeyCount

◆ ref


The documentation for this class was generated from the following files: