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.
|
|
|
void | setDown (bool) |
| Set the item being down.
|
|
bool | isDown () const |
| Return true, if the item is down.
|
|
virtual void | paintEvent (QPaintEvent *) override |
| Paint event.
|
|
virtual void | mousePressEvent (QMouseEvent *) override |
| Handle mouse press events.
|
|
virtual void | mouseReleaseEvent (QMouseEvent *) override |
| Handle mouse release events.
|
|
virtual void | keyPressEvent (QKeyEvent *) override |
| Handle key press events.
|
|
virtual void | keyReleaseEvent (QKeyEvent *) override |
| Handle key release events.
|
|
virtual void | drawContents (QPainter *) |
| Redraw the text and focus indicator.
|
|
A widget representing something on a QwtLegend.
Definition at line 22 of file qwt_legend_label.h.
◆ QwtLegendLabel()
QwtLegendLabel::QwtLegendLabel |
( |
QWidget * | parent = 0 | ) |
|
|
explicit |
◆ ~QwtLegendLabel()
QwtLegendLabel::~QwtLegendLabel |
( |
| ) |
|
|
virtual |
◆ data()
◆ icon()
QPixmap QwtLegendLabel::icon |
( |
| ) |
const |
◆ isChecked()
bool QwtLegendLabel::isChecked |
( |
| ) |
const |
◆ isDown()
bool QwtLegendLabel::isDown |
( |
| ) |
const |
|
protected |
◆ itemMode()
◆ keyPressEvent()
void QwtLegendLabel::keyPressEvent |
( |
QKeyEvent * | e | ) |
|
|
overrideprotectedvirtual |
◆ keyReleaseEvent()
void QwtLegendLabel::keyReleaseEvent |
( |
QKeyEvent * | e | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
void QwtLegendLabel::mousePressEvent |
( |
QMouseEvent * | e | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
void QwtLegendLabel::mouseReleaseEvent |
( |
QMouseEvent * | e | ) |
|
|
overrideprotectedvirtual |
◆ paintEvent()
void QwtLegendLabel::paintEvent |
( |
QPaintEvent * | e | ) |
|
|
overrideprotectedvirtual |
◆ setChecked
void QwtLegendLabel::setChecked |
( |
bool | on | ) |
|
|
slot |
◆ setData()
Set the attributes of the legend label
- Parameters
-
legendData | Attributes of the label |
- See also
- data()
Definition at line 62 of file qwt_legend_label.cpp.
◆ setDown()
void QwtLegendLabel::setDown |
( |
bool | down | ) |
|
|
protected |
◆ setIcon()
void QwtLegendLabel::setIcon |
( |
const QPixmap & | icon | ) |
|
◆ setItemMode()
◆ setSpacing()
void QwtLegendLabel::setSpacing |
( |
int | spacing | ) |
|
◆ setText()
void QwtLegendLabel::setText |
( |
const QwtText & | text | ) |
|
|
overridevirtual |
◆ sizeHint()
QSize QwtLegendLabel::sizeHint |
( |
| ) |
const |
|
overridevirtual |
◆ spacing()
int QwtLegendLabel::spacing |
( |
| ) |
const |