qlegend.h
41 lines
| 849 B
| text/x-c
|
CLexer
/ src / qlegend.h
|
r524 | #ifndef QLEGEND_H | ||
#define QLEGEND_H | ||||
#include "qchartglobal.h" | ||||
#include "qseries.h" | ||||
#include <QGraphicsObject> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class Domain; | ||||
|
r529 | class LegendMarker; | ||
|
r524 | |||
|
r529 | class QTCOMMERCIALCHART_EXPORT QLegend : public QGraphicsObject | ||
|
r524 | { | ||
Q_OBJECT | ||||
public: | ||||
explicit QLegend(QGraphicsItem *parent = 0); | ||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); | ||||
QRectF boundingRect() const; | ||||
signals: | ||||
public slots: | ||||
void handleSeriesAdded(QSeries* series,Domain* domain); | ||||
void handleSeriesRemoved(QSeries* series); | ||||
|
r529 | void handleGeometryChanged(const QRectF& size); | ||
|
r524 | |||
private: | ||||
|
r529 | void dataChanged(); | ||
void layoutChanged(); | ||||
|
r524 | |||
QRectF mBoundingRect; | ||||
QList<QSeries*> mSeriesList; | ||||
|
r529 | QList<LegendMarker*> mMarkers; | ||
|
r524 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QLEGEND_H | ||||