|
Qwt User's Guide
6.2.0
|
Arrow Button. More...
#include <qwt_arrow_button.h>
Public Member Functions | |
| QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL) | |
| virtual | ~QwtArrowButton () |
| Destructor. | |
| Qt::ArrowType | arrowType () const |
| The direction of the arrows. | |
| int | num () const |
| The number of arrows. | |
| virtual QSize | sizeHint () const override |
| virtual QSize | minimumSizeHint () const override |
| Return a minimum size hint. | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) override |
| virtual void | keyPressEvent (QKeyEvent *) override |
| autoRepeat for the space keys | |
| virtual void | drawButtonLabel (QPainter *) |
| Draw the button label. More... | |
| virtual void | drawArrow (QPainter *, const QRect &, Qt::ArrowType) const |
| virtual QRect | labelRect () const |
| virtual QSize | arrowSize (Qt::ArrowType, const QSize &boundingSize) const |
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.
|
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.
|
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 |
Definition at line 104 of file qwt_arrow_button.cpp.
|
overrideprotectedvirtual |
Paint event handler
| event | Paint event |
Definition at line 130 of file qwt_arrow_button.cpp.
|
overridevirtual |
Definition at line 259 of file qwt_arrow_button.cpp.