#include <kshortcut.h>
Public Types | |
| enum | |
| Defines the maximum length of the key sequence. | |
Public Methods | |
| KKeySequence () | |
| KKeySequence (const QKeySequence &keySeq) | |
| KKeySequence (const KKey &key) | |
| KKeySequence (const KKeyNative &key) | |
| KKeySequence (const KKeySequence &keySeq) | |
| KKeySequence (const QString &keySeq) | |
| void | clear () |
| bool | init (const QKeySequence &keySeq) |
| bool | init (const KKey &key) |
| bool | init (const KKeyNative &key) |
| bool | init (const KKeySequence &keySeq) |
| bool | init (const QString &key) |
| KKeySequence & | operator= (const KKeySequence &seq) |
| uint | count () const |
| const KKey & | key (uint i) const |
| bool | setKey (uint i, const KKey &key) |
| bool | isNull () const |
| bool | startsWith (const KKeySequence &keySeq) const |
| int | compare (const KKeySequence &keySeq) const |
| bool | operator== (const KKeySequence &seq) const |
| bool | operator!= (const KKeySequence &seq) const |
| bool | operator< (const KKeySequence &seq) const |
| QKeySequence | qt () const |
| int | keyCodeQt () const |
| QString | toString () const |
Static Public Methods | |
| KKeySequence & | null () |
Definition at line 294 of file kshortcut.h.
|
|
Create a new null key sequence. |
|
|
Copies the given qt key sequence.
|
|
|
Create a new key sequence that only contains the given key.
|
|
|
Create a new key sequence that only contains the given key.
|
|
|
Copies the given key sequence.
|
|
|
Creates a new key sequence that contains the given key sequence. The description consists of comma-separated keys as required by KKey::KKey(const QString&).
|
|
|
Clears the key sequence. The key sequence is null after calling this function.
|
|
|
Compares this object with the given key sequence. Returns a negative number if the given KKeySequence is larger, 0 if they are equal and a positive number this KKeySequence is larger. Key sequences are compared by comparing the individual keys, starting from the beginning until an unequal key has been found. If a sequence contains more keys, it is considered larger.
Referenced by operator!=(), operator<(), and operator==(). |
|
|
Returns the number of key strokes of this sequence.
|
|
|
Initializes this key sequence to contain the given key sequence. The description consists of comma-separated keys as required by KKey::KKey(const QString&).
|
|
|
Copies the given key sequence over this key sequence.
|
|
|
Initializes the key sequence to only contain the given key.
|
|
|
Initializes the key sequence to only contain the given key.
|
|
|
Copies the given qt key sequence over this key sequence.
Referenced by operator=(). |
|
|
Returns true if the key sequence is null (after clear() or empty constructor).
|
|
|
Return the
|
|
|
Returns the qt key code of the first key.
|
|
|
Returns a null key sequence.
|
|
|
Compares the keys of both sequences.
Definition at line 474 of file kshortcut.h. References compare(). |
|
|
Compares the keys of both sequences.
Definition at line 481 of file kshortcut.h. References compare(). |
|
|
Copy the given key sequence into this sequence. Definition at line 393 of file kshortcut.h. References init(). |
|
|
Compares the keys of both sequences.
Definition at line 467 of file kshortcut.h. References compare(). |
|
|
Converts this key sequence to a QKeySequence.
|
|
||||||||||||
|
Sets the
|
|
|
Returns true if this key sequence begins with the given sequence.
|
|
|
Returns the key sequence as a number of key presses as returned by KKey::toString(), seperated by commas.
|
1.2.18