1
.TH "QwtTextLabel" 3 "11 Jun 2007" "Version 5.0.2" "Qwt User's Guide" \" -*- nroff -*-
9
Inherited by \fBQwtLegendItem\fP.
11
.SH "Detailed Description"
13
A Widget which displays a \fBQwtText\fP.
15
Definition at line 25 of file qwt_text_label.h.
20
.RI "void \fBsetText\fP (const QString &, \fBQwtText::TextFormat\fP textFormat=QwtText::AutoText)"
23
.RI "virtual void \fBsetText\fP (const \fBQwtText\fP &)"
26
.RI "void \fBclear\fP ()"
29
.SS "Public Member Functions"
33
.RI "\fBQwtTextLabel\fP (QWidget *parent=NULL)"
36
.RI "\fBQwtTextLabel\fP (const \fBQwtText\fP &, QWidget *parent=NULL)"
39
.RI "virtual \fB~QwtTextLabel\fP ()"
42
.RI "const \fBQwtText\fP & \fBtext\fP () const "
45
.RI "int \fBindent\fP () const "
48
.RI "void \fBsetIndent\fP (int)"
51
.RI "int \fBmargin\fP () const "
54
.RI "void \fBsetMargin\fP (int)"
57
.RI "virtual QSize \fBsizeHint\fP () const "
60
.RI "virtual QSize \fBminimumSizeHint\fP () const "
63
.RI "virtual int \fBheightForWidth\fP (int) const "
66
.RI "QRect \fBtextRect\fP () const "
69
.SS "Protected Member Functions"
73
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)"
76
.RI "virtual void \fBdrawContents\fP (QPainter *)"
79
.RI "virtual void \fBdrawText\fP (QPainter *, const QRect &)"
82
.SH "Constructor & Destructor Documentation"
84
.SS "QwtTextLabel::QwtTextLabel (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
86
Constructs an empty label.
90
\fIparent\fP Parent widget
95
Definition at line 36 of file qwt_text_label.cpp.
96
.SS "QwtTextLabel::QwtTextLabel (const \fBQwtText\fP & text, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
98
Constructs a label that displays the text, text
102
\fIparent\fP Parent widget
109
Definition at line 60 of file qwt_text_label.cpp.
112
.SS "QwtTextLabel::~QwtTextLabel ()\fC [virtual]\fP"
116
Definition at line 68 of file qwt_text_label.cpp.
117
.SH "Member Function Documentation"
119
.SS "void QwtTextLabel::clear ()\fC [slot]\fP"
121
Clear the text and all \fBQwtText\fP attributes.
123
Definition at line 113 of file qwt_text_label.cpp.
124
.SS "void QwtTextLabel::drawContents (QPainter *)\fC [protected, virtual]\fP"
126
Redraw the text and focus indicator.
128
Definition at line 241 of file qwt_text_label.cpp.
130
References QwtPainter::drawFocusRect(), drawText(), margin(), and textRect().
132
Referenced by paintEvent(), and QwtLegendItem::paintEvent().
133
.SS "void QwtTextLabel::drawText (QPainter *, const QRect &)\fC [protected, virtual]\fP"
137
Reimplemented in \fBQwtLegendItem\fP.
139
Definition at line 270 of file qwt_text_label.cpp.
141
Referenced by drawContents(), and QwtLegendItem::drawText().
142
.SS "int QwtTextLabel::heightForWidth (int width) const\fC [virtual]\fP"
144
Returns the preferred height for this widget, given the width.
153
Definition at line 196 of file qwt_text_label.cpp.
156
.SS "int QwtTextLabel::indent () const"
158
Return label's text indent in pixels.
160
Definition at line 122 of file qwt_text_label.cpp.
162
Referenced by heightForWidth(), and minimumSizeHint().
163
.SS "int QwtTextLabel::margin () const"
165
Return label's text indent in pixels.
167
Definition at line 143 of file qwt_text_label.cpp.
169
Referenced by drawContents(), QwtLegendItem::drawItem(), QwtLegendItem::paintEvent(), QwtLegendItem::setIdentfierWidth(), and QwtLegendItem::setSpacing().
170
.SS "QSize QwtTextLabel::minimumSizeHint () const\fC [virtual]\fP"
172
Return a minimum size hint.
174
Definition at line 167 of file qwt_text_label.cpp.
178
Referenced by sizeHint().
179
.SS "void QwtTextLabel::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP"
183
Reimplemented in \fBQwtLegendItem\fP.
185
Definition at line 218 of file qwt_text_label.cpp.
187
References drawContents().
188
.SS "void QwtTextLabel::setIndent (int indent)"
190
Set label's text indent in pixels
194
\fIindent\fP Indentation in pixels
199
Definition at line 131 of file qwt_text_label.cpp.
201
Referenced by QwtLegendItem::setIdentfierWidth(), and QwtLegendItem::setSpacing().
202
.SS "void QwtTextLabel::setMargin (int margin)"
204
Set label's margin in pixels
208
\fImargin\fP Margin in pixels
213
Definition at line 152 of file qwt_text_label.cpp.
215
Referenced by QwtLegendItem::setItemMode().
216
.SS "void QwtTextLabel::setText (const \fBQwtText\fP & text)\fC [virtual, slot]\fP"
218
Change the label's text
227
Reimplemented in \fBQwtLegendItem\fP.
229
Definition at line 98 of file qwt_text_label.cpp.
232
.SS "void QwtTextLabel::setText (const QString & text, \fBQwtText::TextFormat\fP textFormat = \fCQwtText::AutoText\fP)\fC [slot]\fP"
234
Change the label's text, keeping all other \fBQwtText\fP attributes
240
\fItextFormat\fP Format of text
250
Definition at line 86 of file qwt_text_label.cpp.
252
Referenced by QwtLegendItem::setText().
253
.SS "QSize QwtTextLabel::sizeHint () const\fC [virtual]\fP"
255
Return label's margin in pixels.
257
Reimplemented in \fBQwtLegendItem\fP.
259
Definition at line 161 of file qwt_text_label.cpp.
261
References minimumSizeHint().
263
Referenced by QwtLegendItem::sizeHint().
264
.SS "const \fBQwtText\fP & QwtTextLabel::text () const"
268
Definition at line 107 of file qwt_text_label.cpp.
270
Referenced by QwtLegendItem::drawItem(), QwtPlot::printTitle(), QwtLegendItem::QwtLegendItem(), QwtTextLabel(), QwtPlotPrintFilter::reset(), setText(), and QwtLegendItem::setText().
271
.SS "QRect QwtTextLabel::textRect () const"
273
Calculate the rect for the text in widget coordinates
282
Definition at line 279 of file qwt_text_label.cpp.
284
Referenced by drawContents().
288
Generated automatically by Doxygen for Qwt User's Guide from the source code.