org.kde.koala

Class KKeyButton

public class KKeyButton extends QPushButton

You must call setShortcut() to set the widget's currently displayed key. You can call captureShortcut() to get a new shortcut from the user. If captureShortcut() succeeds, then the capturedShortcut() signal will be emitted with the value of the new shortcut. The widget containing a KKeyButton widget must connect to this signal and check if the shortcut is valid. If it is, you will need to call setShortcut() with the new value in order make it the key currently displayed. See KKeyButtonSignals for signals emitted by KKeyButton

Author: Mark Donohoe

UNKNOWN: A push button that looks like a keyboard key.

Constructor Summary
protected KKeyButton(Class dummy)
KKeyButton(QWidget parent, String name)
Constructs key button widget.
KKeyButton(QWidget parent)
KKeyButton()
Method Summary
voidcaptureShortcut()
Call this method to capture a shortcut from the keyboard.
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawButton(QPainter _painter)
Reimplemented for internal reasons.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetShortcut(KShortcut cut, boolean bQtShortcut)
voidsetText(String text)
Reimplemented for internal purposes.
KShortcutshortcut()

Constructor Detail

KKeyButton

protected KKeyButton(Class dummy)

KKeyButton

public KKeyButton(QWidget parent, String name)
Constructs key button widget.

UNKNOWN: Constructs key button widget.

KKeyButton

public KKeyButton(QWidget parent)

KKeyButton

public KKeyButton()

Method Detail

captureShortcut

public void captureShortcut()
Call this method to capture a shortcut from the keyboard. If it succeeds, the capturedShortcut() signal will be emitted.

UNKNOWN: Call this method to capture a shortcut from the keyboard.

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

drawButton

protected void drawButton(QPainter _painter)
Reimplemented for internal reasons.

UNKNOWN: Reimplemented for internal reasons.

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

setShortcut

public void setShortcut(KShortcut cut, boolean bQtShortcut)

setText

public void setText(String text)
Reimplemented for internal purposes.

UNKNOWN: Reimplemented for internal purposes.

shortcut

public KShortcut shortcut()