
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.
Public Member Functions | |
| QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL) | |
| virtual | ~QwtArrowButton () |
| Qt::ArrowType | arrowType () const |
| int | num () const |
| virtual QSize | sizeHint () const |
| virtual QSize | minimumSizeHint () const |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | drawButtonLabel (QPainter *p) |
| virtual void | drawArrow (QPainter *, const QRect &, Qt::ArrowType) const |
| virtual QRect | labelRect () const |
| virtual QSize | arrowSize (Qt::ArrowType, const QSize &boundingSize) const |
| virtual void | keyPressEvent (QKeyEvent *) |
| QwtArrowButton::QwtArrowButton | ( | int | num, | |
| Qt::ArrowType | arrowType, | |||
| QWidget * | parent = NULL | |||
| ) | [explicit] |
| num | Number of arrows | |
| arrowType | see Qt::ArowType in the Qt docs. | |
| parent | Parent widget |
Definition at line 58 of file qwt_arrow_button.cpp.
| QwtArrowButton::~QwtArrowButton | ( | ) | [virtual] |
| Qt::ArrowType QwtArrowButton::arrowType | ( | ) | const |
| int QwtArrowButton::num | ( | ) | const |
| QSize QwtArrowButton::sizeHint | ( | ) | const [virtual] |
Definition at line 286 of file qwt_arrow_button.cpp.
References minimumSizeHint().
| QSize QwtArrowButton::minimumSizeHint | ( | ) | const [virtual] |
Return a minimum size hint.
Definition at line 294 of file qwt_arrow_button.cpp.
References arrowSize().
Referenced by sizeHint().
| void QwtArrowButton::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Paint event handler
| event | Paint event |
Definition at line 143 of file qwt_arrow_button.cpp.
References drawButtonLabel().
| void QwtArrowButton::drawButtonLabel | ( | QPainter * | painter | ) | [protected, virtual] |
Draw the button label.
| painter | Painter |
Definition at line 157 of file qwt_arrow_button.cpp.
References arrowSize(), drawArrow(), and labelRect().
Referenced by paintEvent().
| void QwtArrowButton::drawArrow | ( | QPainter * | painter, | |
| const QRect & | r, | |||
| Qt::ArrowType | arrowType | |||
| ) | const [protected, virtual] |
Draw an arrow int a bounding rect
| painter | Painter | |
| r | Rectangle where to paint the arrow | |
| arrowType | Arrow type |
Definition at line 240 of file qwt_arrow_button.cpp.
Referenced by drawButtonLabel().
| QRect QwtArrowButton::labelRect | ( | ) | const [protected, virtual] |
Definition at line 108 of file qwt_arrow_button.cpp.
Referenced by drawButtonLabel().
| QSize QwtArrowButton::arrowSize | ( | Qt::ArrowType | arrowType, | |
| const QSize & | boundingSize | |||
| ) | const [protected, virtual] |
Calculate the size for a arrow that fits into a rect of a given size
| arrowType | Arrow type | |
| boundingSize | Bounding size |
Definition at line 331 of file qwt_arrow_button.cpp.
Referenced by drawButtonLabel(), and minimumSizeHint().
| void QwtArrowButton::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
1.5.5