com.trolltech.qt.gui
Class QShortcutEvent

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QEvent
                  extended by com.trolltech.qt.gui.QShortcutEvent
All Implemented Interfaces:
QtJambiInterface

public class QShortcutEvent
extends QEvent

The QShortcutEvent class provides an event which is generated when the user presses a key combination. Normally you don't need to use this class directly; QShortcut provides a higher-level interface to handle shortcut keys.

See also:
QShortcut.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
QEvent.Type
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QShortcutEvent(QKeySequence key, int id)
          Constructs a shortcut event for the given key press, associated with the QShortcut ID id.
QShortcutEvent(QKeySequence key, int id, boolean ambiguous)
          Constructs a shortcut event for the given key press, associated with the QShortcut ID id.
 
Method Summary
protected  boolean ambig()
          Returns true if the key sequence that triggered the event is ambiguous.
protected  QKeySequence sequence()
          Returns the key sequence (QKeySequence) for this QShortcutEvent.
protected  void setAmbig(boolean ambig)
          Sets this QShortcutEvent as having an ambiguous key sequence.
protected  void setSequence(QKeySequence sequence)
          Constructs a shortcut event for the given sequence.
protected  void setSid(int sid)
          Sets this QShortcutEvent's ID to sid.
protected  int sid()
          Returns this QShortcutEvent's ID.
 java.lang.String toString()
          Returns a string representation of the this QShortcutEvent.
 
Methods inherited from class com.trolltech.qt.core.QEvent
accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QShortcutEvent

public QShortcutEvent(QKeySequence key,
                      int id)
Constructs a shortcut event for the given key press, associated with the QShortcut ID id.

ambiguous specifies whether there is more than one QShortcut for the same key sequence.


QShortcutEvent

public QShortcutEvent(QKeySequence key,
                      int id,
                      boolean ambiguous)
Constructs a shortcut event for the given key press, associated with the QShortcut ID id.

ambiguous specifies whether there is more than one QShortcut for the same key sequence.

Method Detail

setSequence

protected final void setSequence(QKeySequence sequence)
Constructs a shortcut event for the given sequence.


sequence

protected final QKeySequence sequence()
Returns the key sequence (QKeySequence) for this QShortcutEvent.


setSid

protected final void setSid(int sid)
Sets this QShortcutEvent's ID to sid.


sid

protected final int sid()
Returns this QShortcutEvent's ID.


setAmbig

protected final void setAmbig(boolean ambig)
Sets this QShortcutEvent as having an ambiguous key sequence.


ambig

protected final boolean ambig()
Returns true if the key sequence that triggered the event is ambiguous.


toString

public java.lang.String toString()
Returns a string representation of the this QShortcutEvent.

Overrides:
toString in class QEvent