QwtLegendItem Class Reference
A legend label.
More...
#include <qwt_legend_item.h>
List of all members.
Detailed Description
A legend label.
QwtLegendItem represents a curve on a legend. It displays an curve identifier with an explaining text. The identifier might be a combination of curve symbol and line. In readonly mode it behaves like a label, otherwise like an unstylish push button.
- See also:
- QwtLegend, QwtPlotCurve
Member Enumeration Documentation
Constructor & Destructor Documentation
| QwtLegendItem::QwtLegendItem |
( |
QWidget * |
parent = 0 |
) |
[explicit] |
| QwtLegendItem::QwtLegendItem |
( |
const QwtSymbol & |
symbol, |
|
|
const QPen & |
curvePen, |
|
|
const QwtText & |
text, |
|
|
QWidget * |
parent = 0 | |
|
) |
| | [explicit] |
- Parameters:
-
| symbol | Curve symbol |
| curvePen | Curve pen |
| text | Label text |
| parent | Parent widget |
| QwtLegendItem::~QwtLegendItem |
( |
|
) |
[virtual] |
Member Function Documentation
| void QwtLegendItem::checked |
( |
bool |
|
) |
[signal] |
Signal, when the legend item has been toggled.
| void QwtLegendItem::clicked |
( |
|
) |
[signal] |
Signal, when the legend item has been clicked.
| const QPen & QwtLegendItem::curvePen |
( |
|
) |
const |
| void QwtLegendItem::drawIdentifier |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect | |
|
) |
| | const [virtual] |
Paint the identifier to a given rect.
- Parameters:
-
| painter | Painter |
| rect | Rect where to paint |
| void QwtLegendItem::drawItem |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect | |
|
) |
| | const [virtual] |
Draw the legend item to a given rect.
- Parameters:
-
| painter | Painter |
| rect | Rect where to paint the button |
| void QwtLegendItem::drawText |
( |
QPainter * |
painter, |
|
|
const QRect & |
textRect | |
|
) |
| | [protected, virtual] |
| int QwtLegendItem::identifierMode |
( |
|
) |
const |
| int QwtLegendItem::identifierWidth |
( |
|
) |
const |
| bool QwtLegendItem::isChecked |
( |
|
) |
const |
Return true, if the item is checked.
| bool QwtLegendItem::isDown |
( |
|
) |
const [protected] |
Return true, if the item is down.
| void QwtLegendItem::keyPressEvent |
( |
QKeyEvent * |
e |
) |
[protected, virtual] |
| void QwtLegendItem::keyReleaseEvent |
( |
QKeyEvent * |
e |
) |
[protected, virtual] |
Handle key release events.
| void QwtLegendItem::mousePressEvent |
( |
QMouseEvent * |
e |
) |
[protected, virtual] |
Handle mouse press events.
| void QwtLegendItem::mouseReleaseEvent |
( |
QMouseEvent * |
e |
) |
[protected, virtual] |
Handle mouse release events.
| void QwtLegendItem::paintEvent |
( |
QPaintEvent * |
e |
) |
[protected, virtual] |
| void QwtLegendItem::pressed |
( |
|
) |
[signal] |
Signal, when the legend item has been pressed.
| void QwtLegendItem::released |
( |
|
) |
[signal] |
Signal, when the legend item has been relased.
| void QwtLegendItem::setChecked |
( |
bool |
on |
) |
[slot] |
| void QwtLegendItem::setCurvePen |
( |
const QPen & |
pen |
) |
|
| void QwtLegendItem::setDown |
( |
bool |
down |
) |
[protected] |
| void QwtLegendItem::setIdentifierMode |
( |
int |
mode |
) |
|
Set identifier mode. Default is ShowLine | ShowText.
- Parameters:
-
| mode | Or'd values of IdentifierMode |
- See also:
- identifierMode()
| void QwtLegendItem::setIdentifierWidth |
( |
int |
width |
) |
|
Set the item mode The default is QwtLegend::ReadOnlyItem
- Parameters:
-
- See also:
- itemMode()
| void QwtLegendItem::setSpacing |
( |
int |
spacing |
) |
|
| void QwtLegendItem::setSymbol |
( |
const QwtSymbol & |
symbol |
) |
|
Set curve symbol.
- Parameters:
-
- See also:
- symbol()
| void QwtLegendItem::setText |
( |
const QwtText & |
text |
) |
[virtual] |
| QSize QwtLegendItem::sizeHint |
( |
|
) |
const [virtual] |
| int QwtLegendItem::spacing |
( |
|
) |
const |
| const QwtSymbol & QwtLegendItem::symbol |
( |
|
) |
const |