CopperSpice API
1.9.2
|
The QShortcutEvent class provides an event which is generated when the user presses a key combination. More...
Public Methods | |
QShortcutEvent (const QKeySequence &key, int id, bool ambiguous=false) | |
~QShortcutEvent () | |
bool | isAmbiguous () const |
const QKeySequence & | key () const |
int | shortcutId () const |
Public Methods inherited from QEvent | |
QEvent (const QEvent &other) | |
QEvent (Type type) | |
virtual | ~QEvent () |
void | accept () |
void | ignore () |
bool | isAccepted () const |
QEvent & | operator= (const QEvent &other) |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Type | type () const |
Additional Inherited Members | |
Public Types inherited from QEvent | |
enum | Type |
Static Public Methods inherited from QEvent | |
static int | registerEventType (int hint=-1) |
The QShortcutEvent class provides an event which is generated when the user presses a key combination. Normally you do not need to use this class directly; QShortcut provides a higher-level interface to handle shortcut keys.
QShortcutEvent::QShortcutEvent | ( | const QKeySequence & | key, |
int | id, | ||
bool | ambiguous = false |
||
) |
QShortcutEvent::~QShortcutEvent | ( | ) |
Destroys the event object.
|
inline |
Returns true if the key sequence that triggered the event is ambiguous.
|
inline |
Returns the key sequence that triggered the event.
|
inline |
Returns the ID of the QShortcut object for which this event was generated.