KDEUI
Go to the documentation of this file.
32 #include <QtCore/QList>
33 #include <QtCore/QMetaType>
34 #include <QtGui/QKeySequence>
36 class KShortcutPrivate;
82 explicit KShortcut(
const QKeySequence &primary);
91 KShortcut(
const QKeySequence &primary,
const QKeySequence &alternate);
101 explicit KShortcut(
int keyQtPri,
int keyQtAlt = 0);
125 explicit KShortcut(
const QList<QKeySequence> &seqs);
139 QKeySequence primary()
const;
145 QKeySequence alternate()
const;
151 bool isEmpty()
const;
157 bool contains(
const QKeySequence &needle)
const;
163 bool conflictsWith(
const QKeySequence &needle)
const;
182 QString toString(QKeySequence::SequenceFormat format)
const;
196 operator QList<QKeySequence>()
const;
205 QList<QKeySequence> toList(
enum EmptyHandling handleEmpty = RemoveEmpty)
const;
220 void setPrimary(
const QKeySequence &keySeq);
226 void setAlternate(
const QKeySequence &keySeq);
234 void remove(
const QKeySequence &keySeq,
enum EmptyHandling handleEmpty = RemoveEmpty);
242 class KShortcutPrivate *
const d;
251 inline uint
qHash(
const QKeySequence &key)
254 for(uint i = 0; i < key.count(); i++)
255 hash +=
qHash(key[i]);
261 #endif // KSHORTCUT_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:49:40 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.