KDEUI
#include <karrowbutton.h>
Public Slots | |
void | setArrowType (Qt::ArrowType a) |
Public Member Functions | |
KArrowButton (QWidget *parent=0, Qt::ArrowType arrow=Qt::UpArrow) | |
virtual | ~KArrowButton () |
int | arrowTp () const |
Qt::ArrowType | arrowType () const |
void | setArrowTp (int tp) |
virtual QSize | sizeHint () const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) |
Properties | |
int | arrowType |
Detailed Description
Draws a button with an arrow.
- Deprecated:
- Use a QToolButton with the arrowType property set instead
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 41 of file karrowbutton.h.
Constructor & Destructor Documentation
|
explicit |
Constructs an arrow button.
- Parameters
-
parent This button's parent arrow The direction the arrrow should be pointing in
Definition at line 33 of file karrowbutton.cpp.
|
virtual |
Destructor.
Definition at line 39 of file karrowbutton.cpp.
Member Function Documentation
|
inline |
hack for moc braindamage with enums, use arrowType() instead
Definition at line 74 of file karrowbutton.h.
Qt::ArrowType KArrowButton::arrowType | ( | ) | const |
Returns the arrow type.
|
protectedvirtual |
Reimplemented from QPushButton.
Definition at line 61 of file karrowbutton.cpp.
|
inline |
hack for moc braindamage with enums, use setArrowType() instead
Definition at line 76 of file karrowbutton.h.
|
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 49 of file karrowbutton.cpp.
|
virtual |
Reimplemented from QPushButton.
Definition at line 44 of file karrowbutton.cpp.
Property Documentation
|
readwrite |
Arrow type for this button, from Qt::ArrowType.
Definition at line 47 of file karrowbutton.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.