QwtLegendCurveItem Class Reference
A legend item for curves.
More...
#include <qwt_legend_item.h>
List of all members.
Detailed Description
A legend item for curves.
QwtLegendCurveItem 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
Constructor & Destructor Documentation
QwtLegendCurveItem::QwtLegendCurveItem |
( |
QWidget * |
parent = 0 |
) |
[explicit] |
QwtLegendCurveItem::QwtLegendCurveItem |
( |
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 |
QwtLegendCurveItem::~QwtLegendCurveItem |
( |
|
) |
[virtual] |
Member Function Documentation
const QPen & QwtLegendCurveItem::curvePen |
( |
|
) |
const |
void QwtLegendCurveItem::drawIdentifier |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect | |
|
) |
| | const [virtual] |
Paint the identifier to a given rect.
- Parameters:
-
| painter | Painter |
| rect | Rect where to paint |
void QwtLegendCurveItem::setCurvePen |
( |
const QPen & |
pen |
) |
|
void QwtLegendCurveItem::setSymbol |
( |
const QwtSymbol & |
symbol |
) |
|
Set curve symbol.
- Parameters:
-
- See also:
- symbol()
const QwtSymbol & QwtLegendCurveItem::symbol |
( |
|
) |
const |