org.kde.qt

Class QButton

public class QButton extends QWidget

See QButtonSignals for signals emitted by QButton
Field Summary
static intNoChange
static intOff
static intOn
static intSingleShot
static intToggle
static intTristate
Constructor Summary
protected QButton(Class dummy)
QButton(QWidget parent, String name, int f)
QButton(QWidget parent, String name)
QButton(QWidget parent)
QButton()
Method Summary
QKeySequenceaccel()
voidanimateClick()
booleanautoRepeat()
booleanautoResize()
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawButton(QPainter arg1)
protected voiddrawButtonLabel(QPainter arg1)
protected voidenabledChange(boolean arg1)
protected voidfinalize()
Deletes the wrapped C++ instance
protected voidfocusInEvent(QFocusEvent arg1)
protected voidfocusOutEvent(QFocusEvent arg1)
QButtonGroupgroup()
protected booleanhitButton(QPoint pos)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisDown()
booleanisExclusiveToggle()
booleanisOn()
booleanisToggleButton()
protected voidkeyPressEvent(QKeyEvent arg1)
protected voidkeyReleaseEvent(QKeyEvent arg1)
QMetaObjectmetaObject()
protected voidmouseMoveEvent(QMouseEvent arg1)
protected voidmousePressEvent(QMouseEvent arg1)
protected voidmouseReleaseEvent(QMouseEvent arg1)
protected voidpaintEvent(QPaintEvent arg1)
QPixmappixmap()
voidsetAccel(QKeySequence arg1)
voidsetAutoRepeat(boolean arg1)
voidsetAutoResize(boolean arg1)
voidsetDown(boolean arg1)
protected voidsetOn(boolean arg1)
voidsetPixmap(QPixmap arg1)
voidsetState(int arg1)
voidsetText(String arg1)
protected voidsetToggleButton(boolean arg1)
protected voidsetToggleType(int arg1)
intstate()
Stringtext()
voidtoggle()
inttoggleType()
static Stringtr(String arg1, String arg2)
static Stringtr(String arg1)

Field Detail

NoChange

public static final int NoChange

Off

public static final int Off

On

public static final int On

SingleShot

public static final int SingleShot

Toggle

public static final int Toggle

Tristate

public static final int Tristate

Constructor Detail

QButton

protected QButton(Class dummy)

QButton

public QButton(QWidget parent, String name, int f)

QButton

public QButton(QWidget parent, String name)

QButton

public QButton(QWidget parent)

QButton

public QButton()

Method Detail

accel

public QKeySequence accel()

animateClick

public void animateClick()

autoRepeat

public boolean autoRepeat()

autoResize

public boolean autoResize()

className

public String className()

dispose

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

drawButton

protected void drawButton(QPainter arg1)

drawButtonLabel

protected void drawButtonLabel(QPainter arg1)

enabledChange

protected void enabledChange(boolean arg1)

finalize

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

focusInEvent

protected void focusInEvent(QFocusEvent arg1)

focusOutEvent

protected void focusOutEvent(QFocusEvent arg1)

group

public QButtonGroup group()

hitButton

protected boolean hitButton(QPoint pos)

isDisposed

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

isDown

public boolean isDown()

isExclusiveToggle

public boolean isExclusiveToggle()

isOn

public boolean isOn()

isToggleButton

public boolean isToggleButton()

keyPressEvent

protected void keyPressEvent(QKeyEvent arg1)

keyReleaseEvent

protected void keyReleaseEvent(QKeyEvent arg1)

metaObject

public QMetaObject metaObject()

mouseMoveEvent

protected void mouseMoveEvent(QMouseEvent arg1)

mousePressEvent

protected void mousePressEvent(QMouseEvent arg1)

mouseReleaseEvent

protected void mouseReleaseEvent(QMouseEvent arg1)

paintEvent

protected void paintEvent(QPaintEvent arg1)

pixmap

public QPixmap pixmap()

setAccel

public void setAccel(QKeySequence arg1)

setAutoRepeat

public void setAutoRepeat(boolean arg1)

setAutoResize

public void setAutoResize(boolean arg1)

setDown

public void setDown(boolean arg1)

setOn

protected void setOn(boolean arg1)

setPixmap

public void setPixmap(QPixmap arg1)

setState

public void setState(int arg1)

setText

public void setText(String arg1)

setToggleButton

protected void setToggleButton(boolean arg1)

setToggleType

protected void setToggleType(int arg1)

state

public int state()

text

public String text()

toggle

public void toggle()

toggleType

public int toggleType()

tr

public static String tr(String arg1, String arg2)

tr

public static String tr(String arg1)