QtBase  v6.3.1
Public Types | Public Member Functions | List of all members
QShortcutMap Class Reference

#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< QKeySequencekeySequences (bool getAll=false) const
 

Detailed Description

Definition at line 71 of file qshortcutmap_p.h.

Member Typedef Documentation

◆ ContextMatcher

typedef bool(* QShortcutMap::ContextMatcher) (QObject *object, Qt::ShortcutContext context)

Definition at line 78 of file qshortcutmap_p.h.

Constructor & Destructor Documentation

◆ QShortcutMap()

QShortcutMap::QShortcutMap ( )

Definition at line 142 of file qshortcutmap.cpp.

◆ ~QShortcutMap()

QShortcutMap::~QShortcutMap ( )

Definition at line 151 of file qshortcutmap.cpp.

Member Function Documentation

◆ addShortcut()

int QShortcutMap::addShortcut ( QObject owner,
const QKeySequence key,
Qt::ShortcutContext  context,
ContextMatcher  matcher 
)

Definition at line 159 of file qshortcutmap.cpp.

◆ hasShortcutForKeySequence()

bool QShortcutMap::hasShortcutForKeySequence ( const QKeySequence seq) const

Definition at line 401 of file qshortcutmap.cpp.

◆ keySequences()

QList< QKeySequence > QShortcutMap::keySequences ( bool  getAll = false) const

Definition at line 673 of file qshortcutmap.cpp.

Here is the call graph for this function:

◆ removeShortcut()

int QShortcutMap::removeShortcut ( int  id,
QObject owner,
const QKeySequence key = QKeySequence() 
)

Definition at line 183 of file qshortcutmap.cpp.

◆ setShortcutAutoRepeat()

int QShortcutMap::setShortcutAutoRepeat ( bool  on,
int  id,
QObject owner,
const QKeySequence key = QKeySequence() 
)

Definition at line 266 of file qshortcutmap.cpp.

◆ setShortcutEnabled()

int QShortcutMap::setShortcutEnabled ( bool  enable,
int  id,
QObject owner,
const QKeySequence key = QKeySequence() 
)

Definition at line 230 of file qshortcutmap.cpp.

◆ state()

QKeySequence::SequenceMatch QShortcutMap::state ( )

Definition at line 307 of file qshortcutmap.cpp.

Here is the caller graph for this function:

◆ tryShortcut()

bool QShortcutMap::tryShortcut ( QKeyEvent e)

Definition at line 322 of file qshortcutmap.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: