QShortcut Class Reference

#include <qshortcut.h>

Class Description

Definition at line 57 of file qshortcut.h.

+ Inheritance diagram for QShortcut:

Signals

void activated ()
 
void activatedAmbiguously ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

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
 
QWidgetparentWidget () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

bool event (QEvent *e)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

QKeySequence key
 
QString whatsThis
 
bool enabled
 
bool autoRepeat
 
Qt::ShortcutContext context
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

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)
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.

91  { return static_cast<QWidget *>(QObject::parent()); }
QObject * parent() const
Definition: qobject.h:273
void activated ( )
signal
void activatedAmbiguously ( )
signal
bool event ( QEvent e)
protectedvirtual

Reimplemented from QObject.

Property Documentation

QKeySequence key
readwrite

Definition at line 61 of file qshortcut.h.

QString whatsThis
readwrite

Definition at line 62 of file qshortcut.h.

bool enabled
readwrite

Definition at line 63 of file qshortcut.h.

bool autoRepeat
readwrite

Definition at line 64 of file qshortcut.h.

Definition at line 65 of file qshortcut.h.


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