KDEUI
kshortcut.cpp
Go to the documentation of this file.
bool contains(const QKeySequence &needle) const
Returns whether at least one of the key sequences is equal to needle.
Definition: kshortcut.cpp:149
QString & append(QChar ch)
remove empty QKeySequences, possibly changing the positions of QKeySequences due to the ensuing reshu...
Definition: kshortcut.h:67
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T & at(int i) const
Defines platform-independent classes for keyboard shortcut handling.
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void chop(int n)
bool conflictsWith(const QKeySequence &needle) const
Returns whether at least one of the key sequences conflicts witho needle.
Definition: kshortcut.cpp:156
QList< QKeySequence > toList(enum EmptyHandling handleEmpty=RemoveEmpty) const
The same as operator QList() If handleEmpty equals RemoveEmpty, empty key sequences wil...
Definition: kshortcut.cpp:233
int count(const T &value) const
void append(const T &value)
SequenceMatch matches(const QKeySequence &seq) const
QKeySequence fromString(const QString &str, SequenceFormat format)
bool isEmpty() const
Returns whether this shortcut contains any nonempty key sequences.
Definition: kshortcut.cpp:144
bool isEmpty() const
if a shortcut is or becomes empty, let it stay as a placeholder
Definition: kshortcut.h:65
QKeySequence alternate() const
Returns the alternate key sequence of this shortcut.
Definition: kshortcut.cpp:139
void remove(const QKeySequence &keySeq, enum EmptyHandling handleEmpty=RemoveEmpty)
Remove keySeq from this shortcut.
Definition: kshortcut.cpp:194
bool isEmpty() const
QString & replace(int position, int n, QChar after)
EmptyHandling
An enum about the behavior of operations that treat a KShortcut like a list of QKeySequences.
Definition: kshortcut.h:63
QString toString(SequenceFormat format) const
void setAlternate(const QKeySequence &keySeq)
Set the alternate key sequence of this shortcut to the given key sequence.
Definition: kshortcut.cpp:189
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setPrimary(const QKeySequence &keySeq)
Set the primary key sequence of this shortcut to the given key sequence.
Definition: kshortcut.cpp:184
QKeySequence primary() const
Returns the primary key sequence of this shortcut.
Definition: kshortcut.cpp:134
QString toString() const
Returns a description of the shortcut as a semicolon-separated list of key sequences, as returned by QKeySequence::toString().
Definition: kshortcut.cpp:249
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.