Arrow Button. More...
#include <qwt_arrow_button.h>
Classes | |
class | PrivateData |
Public Member Functions | |
Qt::ArrowType | arrowType () const |
The direction of the arrows. More... | |
virtual QSize | minimumSizeHint () const QWT_OVERRIDE |
Return a minimum size hint. More... | |
int | num () const |
The number of arrows. More... | |
QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL) | |
virtual QSize | sizeHint () const QWT_OVERRIDE |
virtual | ~QwtArrowButton () |
Destructor. More... | |
Protected Member Functions | |
virtual QSize | arrowSize (Qt::ArrowType, const QSize &boundingSize) const |
virtual void | drawArrow (QPainter *, const QRect &, Qt::ArrowType) const |
virtual void | drawButtonLabel (QPainter *) |
Draw the button label. More... | |
virtual void | keyPressEvent (QKeyEvent *) QWT_OVERRIDE |
autoRepeat for the space keys More... | |
virtual QRect | labelRect () const |
virtual void | paintEvent (QPaintEvent *) QWT_OVERRIDE |
Private Attributes | |
PrivateData * | m_data |
Arrow Button.
A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right.
Definition at line 23 of file qwt_arrow_button.h.
|
explicit |
num | Number of arrows |
arrowType | see Qt::ArrowType in the Qt docs. |
parent | Parent widget |
Definition at line 55 of file qwt_arrow_button.cpp.
|
virtual |
Destructor.
Definition at line 79 of file qwt_arrow_button.cpp.
|
protectedvirtual |
Calculate the size for a arrow that fits into a rectangle of a given size
arrowType | Arrow type |
boundingSize | Bounding size |
Definition at line 296 of file qwt_arrow_button.cpp.
Qt::ArrowType QwtArrowButton::arrowType | ( | ) | const |
The direction of the arrows.
Definition at line 88 of file qwt_arrow_button.cpp.
|
protectedvirtual |
Draw an arrow int a bounding rectangle
painter | Painter |
r | Rectangle where to paint the arrow |
arrowType | Arrow type |
Definition at line 215 of file qwt_arrow_button.cpp.
|
protectedvirtual |
Draw the button label.
painter | Painter |
Definition at line 143 of file qwt_arrow_button.cpp.
|
protectedvirtual |
autoRepeat for the space keys
Definition at line 326 of file qwt_arrow_button.cpp.
|
protectedvirtual |
Definition at line 104 of file qwt_arrow_button.cpp.
|
virtual |
Return a minimum size hint.
Definition at line 268 of file qwt_arrow_button.cpp.
int QwtArrowButton::num | ( | ) | const |
The number of arrows.
Definition at line 96 of file qwt_arrow_button.cpp.
|
protectedvirtual |
Paint event handler
event | Paint event |
Definition at line 130 of file qwt_arrow_button.cpp.
|
virtual |
Definition at line 259 of file qwt_arrow_button.cpp.
|
private |
Definition at line 54 of file qwt_arrow_button.h.