| Qwt User's Guide
    5.2.3
    | 
#include <qwt_legend_item.h>

| Public Types | |
| enum | IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 } | 
| Public Slots | |
| void | setChecked (bool on) | 
|  Public Slots inherited from QwtTextLabel | |
| void | clear () | 
| void | setText (const QString &, QwtText::TextFormat textFormat=QwtText::AutoText) | 
| Signals | |
| void | checked (bool) | 
| void | clicked () | 
| void | pressed () | 
| void | released () | 
| Public Member Functions | |
| QwtLegendItem (QWidget *parent=0) | |
| QwtLegendItem (const QwtSymbol &, const QPen &, const QwtText &, QWidget *parent=0) | |
| virtual | ~QwtLegendItem () | 
| const QPen & | curvePen () const | 
| virtual void | drawIdentifier (QPainter *, const QRect &) const | 
| virtual void | drawItem (QPainter *p, const QRect &) const | 
| int | identifierMode () const | 
| int | identifierWidth () const | 
| bool | isChecked () const | 
| QwtLegend::LegendItemMode | itemMode () const | 
| void | setCurvePen (const QPen &) | 
| void | setIdentifierMode (int) | 
| void | setIdentifierWidth (int width) | 
| void | setItemMode (QwtLegend::LegendItemMode) | 
| void | setSpacing (int spacing) | 
| void | setSymbol (const QwtSymbol &) | 
| virtual void | setText (const QwtText &) | 
| virtual QSize | sizeHint () const | 
| int | spacing () const | 
| const QwtSymbol & | symbol () const | 
|  Public Member Functions inherited from QwtTextLabel | |
| QwtTextLabel (QWidget *parent=NULL) | |
| QwtTextLabel (const QwtText &, QWidget *parent=NULL) | |
| virtual | ~QwtTextLabel () | 
| virtual int | heightForWidth (int) const | 
| int | indent () const | 
| int | margin () const | 
| virtual QSize | minimumSizeHint () const | 
| void | setIndent (int) | 
| void | setMargin (int) | 
| const QwtText & | text () const | 
| QRect | textRect () const | 
| Protected Member Functions | |
| virtual void | drawText (QPainter *, const QRect &) | 
| bool | isDown () const | 
| virtual void | keyPressEvent (QKeyEvent *) | 
| virtual void | keyReleaseEvent (QKeyEvent *) | 
| virtual void | mousePressEvent (QMouseEvent *) | 
| virtual void | mouseReleaseEvent (QMouseEvent *) | 
| virtual void | paintEvent (QPaintEvent *) | 
| void | setDown (bool) | 
|  Protected Member Functions inherited from QwtTextLabel | |
| virtual void | drawContents (QPainter *) | 
A legend label.
QwtLegendItem represents a curve on a legend. It displays an curve identifier with an explaining text. The identifier might be a combination of curve symbol and line. In readonly mode it behaves like a label, otherwise like an unstylish push button.
| 
 | explicit | 
| parent | Parent widget | 
| 
 | explicit | 
| symbol | Curve symbol | 
| curvePen | Curve pen | 
| text | Label text | 
| parent | Parent widget | 
| const QPen & QwtLegendItem::curvePen | ( | ) | const | 
| 
 | virtual | 
Paint the identifier to a given rect.
| painter | Painter | 
| rect | Rect where to paint | 
| 
 | virtual | 
Draw the legend item to a given rect.
| painter | Painter | 
| rect | Rect where to paint the button | 
| int QwtLegendItem::identifierMode | ( | ) | const | 
Or'd values of IdentifierMode.
| int QwtLegendItem::identifierWidth | ( | ) | const | 
Return the width of the identifier
| QwtLegend::LegendItemMode QwtLegendItem::itemMode | ( | ) | const | 
Return the item mode
| 
 | slot | 
| void QwtLegendItem::setCurvePen | ( | const QPen & | pen | ) | 
| void QwtLegendItem::setIdentifierMode | ( | int | mode | ) | 
Set identifier mode. Default is ShowLine | ShowText.
| mode | Or'd values of IdentifierMode | 
| void QwtLegendItem::setIdentifierWidth | ( | int | width | ) | 
Set the width for the identifier Default is 8 pixels
| width | New width | 
| void QwtLegendItem::setItemMode | ( | QwtLegend::LegendItemMode | mode | ) | 
Set the item mode The default is QwtLegend::ReadOnlyItem
| mode | Item mode | 
| void QwtLegendItem::setSpacing | ( | int | spacing | ) | 
Change the spacing
| spacing | Spacing | 
| void QwtLegendItem::setSymbol | ( | const QwtSymbol & | symbol | ) | 
| 
 | virtual | 
Set the text to the legend item
| text | Text label | 
Reimplemented from QwtTextLabel.
| int QwtLegendItem::spacing | ( | ) | const | 
Return the spacing
| const QwtSymbol & QwtLegendItem::symbol | ( | ) | const | 
 1.8.1
 1.8.1