Signals | Public Member Functions | Protected Member Functions | Properties

QShortcut Class Reference

Search for all occurrences

Detailed Description

Definition at line 57 of file qshortcut.h.

#include <qshortcut.h>

Inheritance diagram for QShortcut:
Inheritance graph
[legend]

List of all members.

Signals

void  activated ()
void  activatedAmbiguously ()

Public Member Functions

  QShortcut (QWidget *parent)
  QShortcut (const QKeySequence &key, QWidget *parent, const char *member=0, const char *ambiguousMember=0, Qt::ShortcutContext context=Qt::WindowShortcut)
  ~QShortcut ()
void  setKey (const QKeySequence &key)
QKeySequence  key () const
void  setEnabled (bool enable)
bool  isEnabled () const
void  setContext (Qt::ShortcutContext context)
Qt::ShortcutContext  context ()
void  setWhatsThis (const QString &text)
QString  whatsThis () const
void  setAutoRepeat (bool on)
bool  autoRepeat () const
int  id () const
QWidget parentWidget () const

Protected Member Functions

bool  event (QEvent *e)

Properties

QKeySequence  key
QString  whatsThis
bool  enabled
bool  autoRepeat
Qt::ShortcutContext  context

Constructor & Destructor Documentation

QShortcut ( QWidget parent ) [explicit]
QShortcut ( const QKeySequence key,
QWidget parent,
const char *  member = 0,
const char *  ambiguousMember = 0,
Qt::ShortcutContext  context = Qt::WindowShortcut 
)
~QShortcut ( )

Member Function Documentation

void setKey ( const QKeySequence key )
QKeySequence key ( ) const
void setEnabled ( bool  enable )
bool isEnabled ( ) const
void setContext ( Qt::ShortcutContext  context )
Qt::ShortcutContext context ( )
void setWhatsThis ( const QString text )
QString whatsThis ( ) const
void setAutoRepeat ( bool  on )
bool autoRepeat ( ) const
int id ( ) const
QWidget* parentWidget ( ) const [inline]

Definition at line 90 of file qshortcut.h.

    { return static_cast<QWidget *>(QObject::parent()); }
void activated ( ) [signal]
void activatedAmbiguously ( ) [signal]
bool event ( QEvent e ) [protected, virtual]

Reimplemented from QObject.


Property Documentation

QKeySequence key [read, write]

Definition at line 61 of file qshortcut.h.

QString whatsThis [read, write]

Definition at line 62 of file qshortcut.h.

bool enabled [read, write]

Definition at line 63 of file qshortcut.h.

bool autoRepeat [read, write]

Definition at line 64 of file qshortcut.h.

Qt::ShortcutContext context [read, write]

Definition at line 65 of file qshortcut.h.


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

QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut
QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut QShortcut