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);
117 explicit KShortcut(
const QString &description);
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;
172 QString toString()
const;
182 QString toString(QKeySequence::SequenceFormat format)
const;
210 operator QVariant()
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
Represents a keyboard shortcut.
EmptyHandling
An enum about the behavior of operations that treat a KShortcut like a list of QKeySequences.
KGuiItem remove()
Returns the 'Remove' gui item.
bool operator!=(const KEntry &k1, const KEntry &k2)
QKeySequence primary() const
Returns the primary key sequence of this shortcut.
bool operator==(const KEntry &k1, const KEntry &k2)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.