# class KArrowButton

###

Module | kdeui
Namespace |
Class | KArrowButton
Inherits | QPushButton

Draws a button with an arrow.

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

### methods

- KArrowButton (parent, arrow)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  arrow | Qt.ArrowType | Qt.UpArrow

  Constructs an arrow button.

  parent - This button's parent

  arrow - The direction the arrrow should be pointing in

- KArrowButton (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0
  a1 | Qt.ArrowType | Qt.UpArrow

- arrowTp ( )

  returns int

  hack for moc braindamage with enums, use arrowType() instead

- arrowType ( )

  returns Qt.ArrowType

  Returns the arrow type

- paintEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QPaintEvent |

  Reimplemented from QPushButton.

- setArrowTp (tp)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  tp | int |

  hack for moc braindamage with enums, use setArrowType() instead

- setArrowType (a)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a | Qt.ArrowType |

  Defines in what direction the arrow is pointing to. Will repaint the button if necessary.

  a - The direction this arrow should be pointing in

- sizeHint ( )

  returns QSize

  Reimplemented from QPushButton.