|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
com.trolltech.qt.gui.QShortcutEvent
public class QShortcutEvent
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.
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.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()
|
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 |
---|
public QShortcutEvent(QKeySequence key, int id)
QShortcut
ID id. ambiguous specifies whether there is more than one QShortcut
for the same key sequence.
public QShortcutEvent(QKeySequence key, int id, boolean ambiguous)
QShortcut
ID id. ambiguous specifies whether there is more than one QShortcut
for the same key sequence.
Method Detail |
---|
protected final void setSequence(QKeySequence sequence)
protected final QKeySequence sequence()
protected final void setSid(int sid)
protected final int sid()
protected final void setAmbig(boolean ambig)
protected final boolean ambig()
public java.lang.String toString()
toString
in class QEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |