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

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) | |
| virtual | ~QwtLegendItem () |
| QPixmap | identifier () const |
| QSize | identifierSize () const |
| bool | isChecked () const |
| QwtLegend::LegendItemMode | itemMode () const |
| void | setIdentifier (const QPixmap &) |
| void | setIdentifierSize (const QSize &) |
| void | setItemMode (QwtLegend::LegendItemMode) |
| void | setSpacing (int spacing) |
| virtual void | setText (const QwtText &) |
| virtual QSize | sizeHint () const |
| int | spacing () 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 | |
| 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 *) |
| virtual void | drawText (QPainter *, const QRect &) |
A widget representing something on a QwtLegend().
|
explicit |
| parent | Parent widget |
| QPixmap QwtLegendItem::identifier | ( | ) | const |
| QSize QwtLegendItem::identifierSize | ( | ) | const |
Return the width of the identifier
| QwtLegend::LegendItemMode QwtLegendItem::itemMode | ( | ) | const |
Return the item mode
|
slot |
| void QwtLegendItem::setIdentifier | ( | const QPixmap & | identifier | ) |
Assign the identifier The identifier needs to be created according to the identifierWidth()
| identifier | Pixmap representing a plot item |
| void QwtLegendItem::setIdentifierSize | ( | const QSize & | size | ) |
Set the size for the identifier Default is 8x8 pixels
| size | New size |
| 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 |
|
virtual |
Set the text to the legend item
| text | Text label |
Reimplemented from QwtTextLabel.
| int QwtLegendItem::spacing | ( | ) | const |
Return the spacing
1.8.1