kdeui
KArrowButton Class Reference
Draws a button with an arrow. More...
#include <karrowbutton.h>
Public Slots | |
void | setArrowType (Qt::ArrowType a) |
Public Member Functions | |
int | arrowTp () const |
Qt::ArrowType | arrowType () const |
KArrowButton (QWidget *parent=0, Qt::ArrowType arrow=Qt::UpArrow, const char *name=0) | |
void | setArrowTp (int tp) |
virtual QSize | sizeHint () const |
virtual | ~KArrowButton () |
Protected Member Functions | |
virtual void | drawButton (QPainter *) |
virtual void | virtual_hook (int id, void *data) |
Properties | |
int | arrowType |
Detailed Description
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.
Definition at line 38 of file karrowbutton.h.
Constructor & Destructor Documentation
KArrowButton::KArrowButton | ( | QWidget * | parent = 0 , |
|
Qt::ArrowType | arrow = Qt::UpArrow , |
|||
const char * | name = 0 | |||
) |
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
Definition at line 30 of file karrowbutton.cpp.
KArrowButton::~KArrowButton | ( | ) | [virtual] |
Member Function Documentation
int KArrowButton::arrowTp | ( | ) | const [inline] |
Definition at line 71 of file karrowbutton.h.
Qt::ArrowType KArrowButton::arrowType | ( | ) | const |
Returns the arrow type.
- Since:
- 3.4
void KArrowButton::drawButton | ( | QPainter * | p | ) | [protected, virtual] |
void KArrowButton::setArrowTp | ( | int | tp | ) | [inline] |
Definition at line 72 of file karrowbutton.h.
void KArrowButton::setArrowType | ( | Qt::ArrowType | a | ) | [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
Definition at line 48 of file karrowbutton.cpp.
QSize KArrowButton::sizeHint | ( | void | ) | const [virtual] |
void KArrowButton::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Definition at line 110 of file karrowbutton.cpp.
Property Documentation
Qt::ArrowType KArrowButton::arrowType [read, write] |
Definition at line 41 of file karrowbutton.h.
The documentation for this class was generated from the following files: