#include <karrowbutton.h>
Inherits TQPushButton.
Public Slots | |
void | setArrowType (TQt::ArrowType a) |
Public Member Functions | |
KArrowButton (TQWidget *parent=0, TQt::ArrowType arrow=TQt::UpArrow, const char *name=0) | |
virtual | ~KArrowButton () |
virtual TQSize | sizeHint () const |
TQt::ArrowType | arrowType () const |
int | arrowTp () const |
void | setArrowTp (int tp) |
Protected Member Functions | |
virtual void | drawButton (TQPainter *) |
virtual void | virtual_hook (int id, void *data) |
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 TDEStyle when drawing the arrow.
Definition at line 38 of file karrowbutton.h.
Constructor & Destructor Documentation
◆ KArrowButton()
KArrowButton::KArrowButton | ( | TQWidget * | parent = 0 , |
TQt::ArrowType | arrow = TQt::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()
|
virtual |
Destructor.
Definition at line 38 of file karrowbutton.cpp.
Member Function Documentation
◆ arrowType()
TQt::ArrowType KArrowButton::arrowType | ( | ) | const |
◆ drawButton()
|
protectedvirtual |
Reimplemented from TQPushButton.
Definition at line 60 of file karrowbutton.cpp.
◆ 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
Definition at line 48 of file karrowbutton.cpp.
◆ sizeHint()
|
virtual |
Reimplemented from TQPushButton.
Definition at line 43 of file karrowbutton.cpp.
The documentation for this class was generated from the following files: