|
|
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 honours the currently configured KStyle when drawing the arrow.
KArrowButton (QWidget *parent = 0, Qt::ArrowType arrow = Qt::UpArrow,
const char *name = 0)
| KArrowButton |
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 |
~KArrowButton ()
| ~KArrowButton |
[virtual]
Destructor.
QSize sizeHint ()
| sizeHint |
[const virtual]
Reimplemented from QPushButton.
Reimplemented from QPushButton.
void setArrowType (Qt::ArrowType a)
| setArrowType |
[slot]
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 |
void drawButton (QPainter *)
| drawButton |
[protected virtual]
Reimplemented from QPushButton.
Reimplemented from QPushButton.
void setArrow (Qt::ArrowType a)
| setArrow |
[protected]
@Internal
Qt::ArrowType arrow ()
| arrow |
[protected const]
@Internal