42 #ifndef QSHORTCUTMAP_P_H 43 #define QSHORTCUTMAP_P_H 56 #include "QtGui/qkeysequence.h" 57 #include "QtCore/qvector.h" 58 #include "QtCore/qscopedpointer.h" 62 #ifndef QT_NO_SHORTCUT 93 #ifdef Dump_QShortcutMap 102 #ifndef QT_NO_GRAPHICSVIEW 119 #endif // QT_NO_SHORTCUT 123 #endif // QSHORTCUTMAP_P_H The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
int setShortcutEnabled(bool enable, int id, QObject *owner, const QKeySequence &key=QKeySequence())
Changes the enable state of a shortcut to enable.
void dispatchEvent(QKeyEvent *e)
Dispatches QShortcutEvents to widgets who grabbed the matched key sequence.
bool correctWidgetContext(Qt::ShortcutContext context, QWidget *w, QWidget *active_window) const
bool hasShortcutForKeySequence(const QKeySequence &seq) const
Determines if an enabled shortcut has a matcing key sequence.
long ASN1_INTEGER_get ASN1_INTEGER * a
QShortcutMap()
QShortcutMap constructor.
The QVector class is a template class that provides a dynamic array.
The QObject class is the base class of all Qt objects.
QScopedPointer< QShortcutMapPrivate > d_ptr
QVector< const QShortcutEntry * > matches() const
Returns the vector of QShortcutEntry's matching the last Identical state.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QKeySequence::SequenceMatch nextState(QKeyEvent *e)
void createNewSequences(QKeyEvent *e, QVector< QKeySequence > &ksl)
Alters seq to the new sequence state, based on the current sequence state, and the new key event e...
QKeySequence::SequenceMatch find(QKeyEvent *e)
Returns the next state of the statemachine, based on the new key event e.
~QShortcutMap()
QShortcutMap destructor.
int setShortcutAutoRepeat(bool on, int id, QObject *owner, const QKeySequence &key=QKeySequence())
Changes the auto repeat state of a shortcut to enable.
int translateModifiers(Qt::KeyboardModifiers modifiers)
bool tryShortcutEvent(QObject *o, QKeyEvent *e)
Uses ShortcutOverride event to see if any widgets want to override the event.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
QKeySequence::SequenceMatch state()
void clearSequence(QVector< QKeySequence > &ksl)
Clears seq to an empty QKeySequence.
int removeShortcut(int id, QObject *owner, const QKeySequence &key=QKeySequence())
Removes a shortcut from the global map.
bool correctContext(Qt::ShortcutContext context, QAction *a, QWidget *active_window) const
bool correctGraphicsWidgetContext(Qt::ShortcutContext context, QGraphicsWidget *w, QWidget *active_window) const
int addShortcut(QObject *owner, const QKeySequence &key, Qt::ShortcutContext context)
Adds a shortcut to the global map.
#define Q_DECLARE_PRIVATE(Class)
The QAction class provides an abstract user interface action that can be inserted into widgets...