org.kde.koala

Class KArrowButton

public class KArrowButton extends QPushButton

Draws a button which shows an arrow pointing into a certain direction. The arrow's alignment on the button depends on the direction it's pointing to, e.g. a left arrow is aligned at the left border, a upwards arrow at the top border. This class honors the currently configured KStyle when drawing the arrow.

Author: Frerich Raabe

UNKNOWN: Draws a button with an arrow.

Constructor Summary
protected KArrowButton(Class dummy)
KArrowButton(QWidget parent, int arrow, String name)
Constructs an arrow button.
KArrowButton(QWidget parent, int arrow)
KArrowButton(QWidget parent)
KArrowButton()
Method Summary
intarrowTp()
intarrowType()
Returns the arrow type
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawButton(QPainter arg1)
Reimplemented from QPushButton.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetArrowTp(int tp)
voidsetArrowType(int a)
Defines in what direction the arrow is pointing to.
QSizesizeHint()
Reimplemented from QPushButton.

Constructor Detail

KArrowButton

protected KArrowButton(Class dummy)

KArrowButton

public KArrowButton(QWidget parent, int arrow, String name)
Constructs an arrow button.

Parameters: parent This button's parent arrow The direction the arrrow should be pointing in name An internal name for this widget

UNKNOWN: Constructs an arrow button.

KArrowButton

public KArrowButton(QWidget parent, int arrow)

KArrowButton

public KArrowButton(QWidget parent)

KArrowButton

public KArrowButton()

Method Detail

arrowTp

public int arrowTp()

arrowType

public int arrowType()
Returns the arrow type

UNKNOWN: Returns the arrow type

className

public String className()

dispose

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

drawButton

protected void drawButton(QPainter arg1)
Reimplemented from QPushButton.

UNKNOWN: Reimplemented from QPushButton.

finalize

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

isDisposed

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

metaObject

public QMetaObject metaObject()

setArrowTp

public void setArrowTp(int tp)

setArrowType

public void setArrowType(int a)
Defines in what direction the arrow is pointing to. Will repaint the button if necessary.

Parameters: a The direction this arrow should be pointing in

UNKNOWN: Defines in what direction the arrow is pointing to.

sizeHint

public QSize sizeHint()
Reimplemented from QPushButton.

UNKNOWN: Reimplemented from QPushButton.