#include <qevent.h>
Inheritance diagram for QShortcutEvent:


Normally you don't need to use this class directly; QShortcut provides a higher-level interface to handle shortcut keys.
Definition at line 627 of file qevent.h.
Public Member Functions | |
| QShortcutEvent (const QKeySequence &key, int id, bool ambiguous=false) | |
| ~QShortcutEvent () | |
| const QKeySequence & | key () |
| const QKeySequence & | key () const |
| int | shortcutId () |
| int | shortcutId () const |
| bool | isAmbiguous () |
| bool | isAmbiguous () const |
Protected Attributes | |
| QKeySequence | sequence |
| bool | ambig |
| int | sid |
| QShortcutEvent::QShortcutEvent | ( | const QKeySequence & | key, | |
| int | id, | |||
| bool | ambiguous = false | |||
| ) |
Constructs a shortcut event for the given key press, associated with the QShortcut ID id.
ambiguous specifies whether there is more than one QShortcut for the same key sequence.
Definition at line 2935 of file qevent.cpp.
| QShortcutEvent::~QShortcutEvent | ( | ) |
| const QKeySequence & QShortcutEvent::key | ( | ) | [inline] |
| const QKeySequence & QShortcutEvent::key | ( | ) | const [inline] |
| int QShortcutEvent::shortcutId | ( | ) | [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 635 of file qevent.h.
Referenced by QAbstractButton::event(), QMenuBar::event(), and QLabel::event().
00635 { return sid; }
| int QShortcutEvent::shortcutId | ( | ) | const [inline] |
Returns the ID of the QShortcut object for which this event was generated.
Definition at line 636 of file qevent.h.
00636 { return sid; }
| bool QShortcutEvent::isAmbiguous | ( | ) | [inline] |
Definition at line 637 of file qevent.h.
Referenced by QAbstractButton::event(), and QLabel::event().
00637 { return ambig; }
| bool QShortcutEvent::isAmbiguous | ( | ) | const [inline] |
Returns true if the key sequence that triggered the event is ambiguous.
Definition at line 638 of file qevent.h.
00638 { return ambig; }
QKeySequence QShortcutEvent::sequence [protected] |
bool QShortcutEvent::ambig [protected] |
int QShortcutEvent::sid [protected] |
1.5.1