1
.TH "QwtArrowButton" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
13
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.
15
Definition at line 23 of file qwt_arrow_button.h.
16
.SS "Public Member Functions"
20
.RI "\fBQwtArrowButton\fP (int num, Qt::ArrowType, QWidget *parent=NULL)"
23
.RI "virtual \fB~QwtArrowButton\fP ()"
26
.RI "Qt::ArrowType \fBarrowType\fP () const"
29
.RI "int \fBnum\fP () const"
32
.RI "virtual QSize \fBsizeHint\fP () const"
35
.RI "virtual QSize \fBminimumSizeHint\fP () const"
38
.SS "Protected Member Functions"
42
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *event)"
45
.RI "virtual void \fBdrawButtonLabel\fP (QPainter *p)"
48
.RI "virtual void \fBdrawArrow\fP (QPainter *, const QRect &, Qt::ArrowType) const"
51
.RI "virtual QRect \fBlabelRect\fP () const"
54
.RI "virtual QSize \fBarrowSize\fP (Qt::ArrowType, const QSize &boundingSize) const"
57
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
60
.SH "Constructor & Destructor Documentation"
62
.SS "QwtArrowButton::QwtArrowButton (int num, Qt::ArrowType arrowType, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
66
\fInum\fP Number of arrows
68
\fIarrowType\fP see Qt::ArowType in the Qt docs.
70
\fIparent\fP Parent widget
75
Definition at line 58 of file qwt_arrow_button.cpp.
76
.SS "QwtArrowButton::~QwtArrowButton ()\fC [virtual]\fP"
80
Definition at line 83 of file qwt_arrow_button.cpp.
81
.SH "Member Function Documentation"
83
.SS "Qt::ArrowType QwtArrowButton::arrowType () const"
85
The direction of the arrows.
87
Definition at line 92 of file qwt_arrow_button.cpp.
88
.SS "int QwtArrowButton::num () const"
92
Definition at line 100 of file qwt_arrow_button.cpp.
93
.SS "QSize QwtArrowButton::sizeHint () const\fC [virtual]\fP"
102
Definition at line 286 of file qwt_arrow_button.cpp.
104
References minimumSizeHint().
105
.SS "QSize QwtArrowButton::minimumSizeHint () const\fC [virtual]\fP"
107
Return a minimum size hint.
109
Definition at line 294 of file qwt_arrow_button.cpp.
111
References arrowSize().
113
Referenced by sizeHint().
114
.SS "void QwtArrowButton::paintEvent (QPaintEvent * event)\fC [protected, virtual]\fP"
120
\fIevent\fP Paint event
125
Definition at line 143 of file qwt_arrow_button.cpp.
127
References drawButtonLabel().
128
.SS "void QwtArrowButton::drawButtonLabel (QPainter * painter)\fC [protected, virtual]\fP"
130
Draw the button label.
134
\fIpainter\fP Painter
139
The Qt Manual on QPushButton
144
Definition at line 157 of file qwt_arrow_button.cpp.
146
References arrowSize(), drawArrow(), and labelRect().
148
Referenced by paintEvent().
149
.SS "void QwtArrowButton::drawArrow (QPainter * painter, const QRect & r, Qt::ArrowType arrowType) const\fC [protected, virtual]\fP"
151
Draw an arrow int a bounding rect
155
\fIpainter\fP Painter
157
\fIr\fP Rectangle where to paint the arrow
159
\fIarrowType\fP Arrow type
164
Definition at line 240 of file qwt_arrow_button.cpp.
166
Referenced by drawButtonLabel().
167
.SS "QRect QwtArrowButton::labelRect () const\fC [protected, virtual]\fP"
171
the bounding rect for the label
176
Definition at line 108 of file qwt_arrow_button.cpp.
178
Referenced by drawButtonLabel().
179
.SS "QSize QwtArrowButton::arrowSize (Qt::ArrowType arrowType, const QSize & boundingSize) const\fC [protected, virtual]\fP"
181
Calculate the size for a arrow that fits into a rect of a given size
185
\fIarrowType\fP Arrow type
187
\fIboundingSize\fP Bounding size
197
Definition at line 331 of file qwt_arrow_button.cpp.
199
Referenced by drawButtonLabel(), and minimumSizeHint().
200
.SS "void QwtArrowButton::keyPressEvent (QKeyEvent *)\fC [protected, virtual]\fP"
202
autoRepeat for the space keys
204
Definition at line 361 of file qwt_arrow_button.cpp.
208
Generated automatically by Doxygen for Qwt User's Guide from the source code.