|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Attributes of an entry on a legend. More...
#include <qwt_legend_data.h>
Public Types | |
| enum | Mode { ReadOnly , Clickable , Checkable } |
| Mode defining how a legend entry interacts . More... | |
| enum | Role { ModeRole , TitleRole , IconRole , UserRole = 32 } |
| Identifier how to interpret a QVariant . More... | |
Public Member Functions | |
| QwtLegendData () | |
| Constructor . | |
| ~QwtLegendData () | |
| Destructor . | |
| void | setValues (const QMap< int, QVariant > &) |
| Set the legend attributes. | |
| const QMap< int, QVariant > & | values () const |
| Return the legend attributes. | |
| void | setValue (int role, const QVariant &) |
| Set an attribute value. | |
| QVariant | value (int role) const |
| Return the attribute value for a specific role. | |
| bool | hasRole (int role) const |
| Check if a value exists for a specific role. | |
| bool | isValid () const |
| Check if the legend data is valid. | |
| QwtGraphic | icon () const |
| Return the icon. | |
| QwtText | title () const |
| Return the title. | |
| Mode | mode () const |
| Return the mode. | |
Attributes of an entry on a legend.
| enum QwtLegendData::Mode |
| enum QwtLegendData::Role |
| QwtLegendData::QwtLegendData | ( | ) |
Constructor .
| QwtLegendData::~QwtLegendData | ( | ) |
Destructor .
| bool QwtLegendData::hasRole | ( | int | role | ) | const |
Check if a value exists for a specific role.
| QwtGraphic QwtLegendData::icon | ( | ) | const |
Return the icon.
| bool QwtLegendData::isValid | ( | ) | const |
Check if the legend data is valid.
| QwtLegendData::Mode QwtLegendData::mode | ( | ) | const |
Return the mode.
| void QwtLegendData::setValue | ( | int | role, |
| const QVariant & | data | ||
| ) |
Set an attribute value.
| void QwtLegendData::setValues | ( | const QMap< int, QVariant > & | map | ) |
Set the legend attributes.
| QwtText QwtLegendData::title | ( | ) | const |
Return the title.
| QVariant QwtLegendData::value | ( | int | role | ) | const |
Return the attribute value for a specific role.
| const QMap< int, QVariant > & QwtLegendData::values | ( | ) | const |
Return the legend attributes.