A widget representing something on a QwtLegend. More...
#include <qwt_legend_label.h>

Classes | |
| class | PrivateData |
Public Slots | |
| void | setChecked (bool on) |
Signals | |
| void | checked (bool) |
| Signal, when the legend item has been toggled. | |
| 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. | |
Public Member Functions | |
| const QwtLegendData & | data () const |
| QPixmap | icon () const |
| bool | isChecked () const |
| Return true, if the item is checked. | |
| QwtLegendData::Mode | itemMode () const |
| QwtLegendLabel (QWidget *parent=0) | |
| void | setData (const QwtLegendData &) |
| void | setIcon (const QPixmap &) |
| void | setItemMode (QwtLegendData::Mode) |
| void | setSpacing (int spacing) |
| Change the spacing between icon and text. | |
| virtual void | setText (const QwtText &) |
| virtual QSize | sizeHint () const |
| Return a size hint. | |
| int | spacing () const |
| virtual | ~QwtLegendLabel () |
| Destructor. | |
Protected Member Functions | |
| bool | isDown () const |
| Return true, if the item is down. | |
| virtual void | keyPressEvent (QKeyEvent *) |
| Handle key press events. | |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| Handle key release events. | |
| virtual void | mousePressEvent (QMouseEvent *) |
| Handle mouse press events. | |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| Handle mouse release events. | |
| virtual void | paintEvent (QPaintEvent *) |
| Paint event. | |
| void | setDown (bool) |
| Set the item being down. | |
Private Attributes | |
| PrivateData * | d_data |
A widget representing something on a QwtLegend.
Definition at line 24 of file qwt_legend_label.h.
| QwtLegendLabel::QwtLegendLabel | ( | QWidget * | parent = 0 | ) | [explicit] |
| parent | Parent widget |
Definition at line 94 of file qwt_legend_label.cpp.
| QwtLegendLabel::~QwtLegendLabel | ( | ) | [virtual] |
Destructor.
Definition at line 103 of file qwt_legend_label.cpp.
| void QwtLegendLabel::checked | ( | bool | ) | [signal] |
Signal, when the legend item has been toggled.
| void QwtLegendLabel::clicked | ( | ) | [signal] |
Signal, when the legend item has been clicked.
| const QwtLegendData & QwtLegendLabel::data | ( | ) | const |
Definition at line 86 of file qwt_legend_label.cpp.
| QPixmap QwtLegendLabel::icon | ( | ) | const |
Definition at line 179 of file qwt_legend_label.cpp.
| bool QwtLegendLabel::isChecked | ( | ) | const |
Return true, if the item is checked.
Definition at line 234 of file qwt_legend_label.cpp.
| bool QwtLegendLabel::isDown | ( | ) | const [protected] |
Return true, if the item is down.
Definition at line 264 of file qwt_legend_label.cpp.
| QwtLegendData::Mode QwtLegendLabel::itemMode | ( | ) | const |
| void QwtLegendLabel::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Handle key press events.
Definition at line 372 of file qwt_legend_label.cpp.
| void QwtLegendLabel::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Handle key release events.
Definition at line 398 of file qwt_legend_label.cpp.
| void QwtLegendLabel::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Handle mouse press events.
Definition at line 327 of file qwt_legend_label.cpp.
| void QwtLegendLabel::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Handle mouse release events.
Definition at line 350 of file qwt_legend_label.cpp.
| void QwtLegendLabel::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
| void QwtLegendLabel::pressed | ( | ) | [signal] |
Signal, when the legend item has been pressed.
| void QwtLegendLabel::released | ( | ) | [signal] |
Signal, when the legend item has been released.
| void QwtLegendLabel::setChecked | ( | bool | on | ) | [slot] |
Check/Uncheck a the item
| on | check/uncheck |
Definition at line 220 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setData | ( | const QwtLegendData & | legendData | ) |
Set the attributes of the legend label
| legendData | Attributes of the label |
Definition at line 64 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setDown | ( | bool | down | ) | [protected] |
Set the item being down.
Definition at line 240 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setIcon | ( | const QPixmap & | icon | ) |
Assign the icon
| icon | Pixmap representing a plot item |
Definition at line 164 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setItemMode | ( | QwtLegendData::Mode | mode | ) |
Set the item mode The default is QwtLegendData::ReadOnly
| mode | Item mode |
Definition at line 133 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setSpacing | ( | int | spacing | ) |
Change the spacing between icon and text.
| spacing | Spacing |
Definition at line 190 of file qwt_legend_label.cpp.
| void QwtLegendLabel::setText | ( | const QwtText & | text | ) | [virtual] |
Set the text to the legend item
| text | Text label |
Reimplemented from QwtTextLabel.
Definition at line 115 of file qwt_legend_label.cpp.
| QSize QwtLegendLabel::sizeHint | ( | ) | const [virtual] |
Return a size hint.
Reimplemented from QwtTextLabel.
Definition at line 270 of file qwt_legend_label.cpp.
| int QwtLegendLabel::spacing | ( | ) | const |
Definition at line 209 of file qwt_legend_label.cpp.
PrivateData* QwtLegendLabel::d_data [private] |
Reimplemented from QwtTextLabel.
Definition at line 76 of file qwt_legend_label.h.