42 #ifndef QKEYSEQUENCE_H 43 #define QKEYSEQUENCE_H 45 #include <QtCore/qnamespace.h> 46 #include <QtCore/qstring.h> 54 #ifndef QT_NO_SHORTCUT 59 #ifndef QT_NO_DATASTREAM 152 QKeySequence(
int k1,
int k2 = 0,
int k3 = 0,
int k4 = 0);
165 , Identical = ExactMatch
179 operator int()
const;
180 int operator[](
uint i)
const;
182 #ifdef Q_COMPILER_RVALUE_REFS 184 {
qSwap(
d, other.d);
return *
this; }
189 {
return !(*
this == other); }
192 {
return other < *
this; }
194 {
return !(other < *
this); }
196 {
return !(*
this < other); }
198 bool isDetached()
const;
200 static int decodeString(
const QString &ks);
202 int assign(
const QString &str);
204 void setKey(
int key,
int index);
210 friend class Q3AccelManager;
221 #ifndef QT_NO_DEBUG_STREAM 234 #endif // QT_NO_SHORTCUT 240 #endif // QKEYSEQUENCE_H The QVariant class acts like a union for the most common Qt data types.
The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
bool operator>(const QByteArray &a1, const QByteArray &a2)
StandardKey
This enum represent standard key bindings.
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
bool operator<(int priority, const QPair< QRunnable *, int > &p)
bool operator<=(const QByteArray &a1, const QByteArray &a2)
The QShortcut class is used to create keyboard shortcuts.
void qt_set_sequence_auto_mnemonic(bool b)
#define Q_DECLARE_SHARED(TYPE)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &out, QKeySequence &ks)
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isEmpty(const char *str)
QKeySequencePrivate * DataPtr
static QByteArray encodeString(QTextCodec *tc, const QString &str)
void qSwap(T &value1, T &value2)
The QKeySequence class encapsulates a key sequence as used by shortcuts.
void swap(QKeySequence &other)
Swaps key sequence other with this key sequence.
bool operator>=(const QByteArray &a1, const QByteArray &a2)
Q_DECLARE_TYPEINFO(QKeySequence, Q_MOVABLE_TYPE)
The QDataStream class provides serialization of binary data to a QIODevice.
SequenceFormat
This means that it will be shown translated and on the Mac it will resemble a key sequence from the m...
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
bool operator==(QBool b1, bool b2)
QDataStream & operator>>(QDataStream &in, QUrl &url)
Reads a url into url from the stream in and returns a reference to the stream.
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &in, const QKeySequence &ks)