QtGui/qkeysequence.h Source File
Go to the documentation of this file.
42 #ifndef QKEYSEQUENCE_H
43 #define QKEYSEQUENCE_H
54 #ifndef QT_NO_SHORTCUT
59 #ifndef QT_NO_DATASTREAM
66 void qt_set_sequence_auto_mnemonic(
bool b);
70 class QKeySequencePrivate;
152 QKeySequence(
int k1,
int k2 = 0,
int k3 = 0,
int k4 = 0);
158 bool isEmpty()
const;
165 , Identical = ExactMatch
169 QString toString(SequenceFormat
format = PortableText)
const;
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);
201 static QString encodeString(
int key);
202 int assign(
const QString &str);
204 void setKey(
int key,
int index);
206 QKeySequencePrivate *d;
210 friend class Q3AccelManager;
211 friend class QShortcutMap;
221 #ifndef QT_NO_DEBUG_STREAM
234 #endif // QT_NO_SHORTCUT
240 #endif // QKEYSEQUENCE_H
unsigned int(APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer)
bool operator>(const QByteArray &a1, const QByteArray &a2)
bool operator<=(const QByteArray &a1, const QByteArray &a2)
void swap(QKeySequence &other)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &out, QKeySequence &ks)
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLenum format
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
GLuint GLuint GLsizei count
bool operator!=(const QByteArray &a1, const QByteArray &a2)
bool operator>=(const QByteArray &a1, const QByteArray &a2)
QKeySequencePrivate * DataPtr
Q_DECLARE_TYPEINFO(QKeySequence, Q_MOVABLE_TYPE)
bool operator<(const QByteArray &a1, const QByteArray &a2)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &in, const QKeySequence &ks)