A widget representing something on a QwtLegend.
More...
#include <qwt_legend_label.h>
|
|
void | clicked () |
| | Signal, when the legend item has been clicked.
|
| |
|
void | pressed () |
| | Signal, when the legend item has been pressed.
|
| |
|
void | released () |
| | Signal, when the legend item has been released.
|
| |
|
void | checked (bool) |
| | Signal, when the legend item has been toggled.
|
| |
|
| | QwtLegendLabel (QWidget *parent=0) |
| |
|
virtual | ~QwtLegendLabel () |
| | Destructor.
|
| |
| void | setData (const QwtLegendData &) |
| | Set the attributes of the legend label.
|
| |
| const QwtLegendData & | data () const |
| |
| void | setItemMode (QwtLegendData::Mode) |
| | Set the item mode The default is QwtLegendData::ReadOnly.
|
| |
| QwtLegendData::Mode | itemMode () const |
| |
| void | setSpacing (int spacing) |
| | Change the spacing between icon and text.
|
| |
| int | spacing () const |
| |
| virtual void | setText (const QwtText &) QWT_OVERRIDE |
| | Set the text to the legend item.
|
| |
| void | setIcon (const QPixmap &) |
| | Assign the icon.
|
| |
| QPixmap | icon () const |
| |
| virtual QSize | sizeHint () const QWT_OVERRIDE |
| | Return a size hint.
|
| |
|
bool | isChecked () const |
| | Return true, if the item is checked.
|
| |
| | QwtTextLabel (QWidget *parent=NULL) |
| | Constructs an empty label.
|
| |
| | QwtTextLabel (const QwtText &, QWidget *parent=NULL) |
| | Constructs a label that displays the text, text.
|
| |
|
virtual | ~QwtTextLabel () |
| | Destructor.
|
| |
| void | setPlainText (const QString &) |
| | Interface for the designer plugin - does the same as setText()
|
| |
| QString | plainText () const |
| | Interface for the designer plugin.
|
| |
|
const QwtText & | text () const |
| | Return the text.
|
| |
|
int | indent () const |
| | Return label's text indent in pixels.
|
| |
| void | setIndent (int) |
| | Set label's text indent in pixels.
|
| |
|
int | margin () const |
| | Return label's text margin in pixels.
|
| |
| void | setMargin (int) |
| | Set label's margin in pixels.
|
| |
|
virtual QSize | minimumSizeHint () const QWT_OVERRIDE |
| | Return a minimum size hint.
|
| |
| virtual int | heightForWidth (int) const QWT_OVERRIDE |
| |
| QRect | textRect () const |
| | Calculate geometry for the text in widget coordinates.
|
| |
|
virtual void | drawText (QPainter *, const QRectF &) |
| | Redraw the text.
|
| |
|
|
void | setDown (bool) |
| | Set the item being down.
|
| |
|
bool | isDown () const |
| | Return true, if the item is down.
|
| |
| virtual void | paintEvent (QPaintEvent *) QWT_OVERRIDE |
| | Paint event.
|
| |
|
virtual void | mousePressEvent (QMouseEvent *) QWT_OVERRIDE |
| | Handle mouse press events.
|
| |
|
virtual void | mouseReleaseEvent (QMouseEvent *) QWT_OVERRIDE |
| | Handle mouse release events.
|
| |
|
virtual void | keyPressEvent (QKeyEvent *) QWT_OVERRIDE |
| | Handle key press events.
|
| |
|
virtual void | keyReleaseEvent (QKeyEvent *) QWT_OVERRIDE |
| | Handle key release events.
|
| |
|
virtual void | drawContents (QPainter *) |
| | Redraw the text and focus indicator.
|
| |
|
|
int | indent |
| |
|
int | margin |
| |
|
QString | plainText |
| |
A widget representing something on a QwtLegend.
◆ QwtLegendLabel()
| QwtLegendLabel::QwtLegendLabel |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ data()
◆ icon()
| QPixmap QwtLegendLabel::icon |
( |
| ) |
const |
- Returns
- Pixmap representing a plot item
- See also
- setIcon()
◆ itemMode()
◆ paintEvent()
| void QwtLegendLabel::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protectedvirtual |
◆ setChecked
| void QwtLegendLabel::setChecked |
( |
bool |
on | ) |
|
|
slot |
◆ setData()
Set the attributes of the legend label.
- Parameters
-
| legendData | Attributes of the label |
- See also
- data()
◆ setIcon()
| void QwtLegendLabel::setIcon |
( |
const QPixmap & |
icon | ) |
|
◆ setItemMode()
◆ setSpacing()
| void QwtLegendLabel::setSpacing |
( |
int |
spacing | ) |
|
Change the spacing between icon and text.
- Parameters
-
- See also
- spacing(), QwtTextLabel::margin()
◆ setText()
| void QwtLegendLabel::setText |
( |
const QwtText & |
text | ) |
|
|
virtual |
◆ sizeHint()
| QSize QwtLegendLabel::sizeHint |
( |
| ) |
const |
|
virtual |
◆ spacing()
| int QwtLegendLabel::spacing |
( |
| ) |
const |
- Returns
- Spacing between icon and text
- See also
- setSpacing(), QwtTextLabel::margin()
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/qwt_legend_label.h
- /home/runner/work/QWT/QWT/src/qwt_legend_label.cpp