|
Eneboo - Documentación para desarrolladores
|
Arrow Button. Más...
#include <qwt_arrow_button.h>
Clases | |
| class | PrivateData |
Métodos públicos | |
| 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 |
| virtual QSize | minimumSizeHint () const |
| Return a minimum size hint. | |
Métodos protegidos | |
| virtual void | drawButtonLabel (QPainter *p) |
| Draw the button label. | |
| 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 *) |
| autoRepeat for the space keys | |
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.
| 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 |
| QwtArrowButton::~QwtArrowButton | ( | ) | [virtual] |
Destructor.
| 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 |
| Qt::ArrowType QwtArrowButton::arrowType | ( | ) | const |
The direction of the arrows.
| 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 |
| void QwtArrowButton::drawButtonLabel | ( | QPainter * | painter | ) | [protected, virtual] |
Draw the button label.
| painter | Painter |
Reimplementado de QPushButton.
| void QwtArrowButton::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
autoRepeat for the space keys
Reimplementado de QButton.
| QRect QwtArrowButton::labelRect | ( | ) | const [protected, virtual] |
| QSize QwtArrowButton::minimumSizeHint | ( | ) | const [virtual] |
Return a minimum size hint.
Reimplementado de QWidget.
| int QwtArrowButton::num | ( | ) | const |
The number of arrows.
| QSize QwtArrowButton::sizeHint | ( | ) | const [virtual] |
Reimplementado de QPushButton.
1.7.4