QtBase
v6.3.1
|
#include <qshortcutmap_p.h>
Public Types | |
typedef bool(* | ContextMatcher) (QObject *object, Qt::ShortcutContext context) |
Public Member Functions | |
QShortcutMap () | |
~QShortcutMap () | |
int | addShortcut (QObject *owner, const QKeySequence &key, Qt::ShortcutContext context, ContextMatcher matcher) |
int | removeShortcut (int id, QObject *owner, const QKeySequence &key=QKeySequence()) |
int | setShortcutEnabled (bool enable, int id, QObject *owner, const QKeySequence &key=QKeySequence()) |
int | setShortcutAutoRepeat (bool on, int id, QObject *owner, const QKeySequence &key=QKeySequence()) |
QKeySequence::SequenceMatch | state () |
bool | tryShortcut (QKeyEvent *e) |
bool | hasShortcutForKeySequence (const QKeySequence &seq) const |
QList< QKeySequence > | keySequences (bool getAll=false) const |
Definition at line 71 of file qshortcutmap_p.h.
typedef bool(* QShortcutMap::ContextMatcher) (QObject *object, Qt::ShortcutContext context) |
Definition at line 78 of file qshortcutmap_p.h.
QShortcutMap::QShortcutMap | ( | ) |
Definition at line 142 of file qshortcutmap.cpp.
QShortcutMap::~QShortcutMap | ( | ) |
Definition at line 151 of file qshortcutmap.cpp.
int QShortcutMap::addShortcut | ( | QObject * | owner, |
const QKeySequence & | key, | ||
Qt::ShortcutContext | context, | ||
ContextMatcher | matcher | ||
) |
Definition at line 159 of file qshortcutmap.cpp.
bool QShortcutMap::hasShortcutForKeySequence | ( | const QKeySequence & | seq | ) | const |
Definition at line 401 of file qshortcutmap.cpp.
QList< QKeySequence > QShortcutMap::keySequences | ( | bool | getAll = false | ) | const |
int QShortcutMap::removeShortcut | ( | int | id, |
QObject * | owner, | ||
const QKeySequence & | key = QKeySequence() |
||
) |
Definition at line 183 of file qshortcutmap.cpp.
int QShortcutMap::setShortcutAutoRepeat | ( | bool | on, |
int | id, | ||
QObject * | owner, | ||
const QKeySequence & | key = QKeySequence() |
||
) |
Definition at line 266 of file qshortcutmap.cpp.
int QShortcutMap::setShortcutEnabled | ( | bool | enable, |
int | id, | ||
QObject * | owner, | ||
const QKeySequence & | key = QKeySequence() |
||
) |
Definition at line 230 of file qshortcutmap.cpp.
QKeySequence::SequenceMatch QShortcutMap::state | ( | ) |
bool QShortcutMap::tryShortcut | ( | QKeyEvent * | e | ) |
Definition at line 322 of file qshortcutmap.cpp.