##// END OF EJS Templates
Default theme with OS specific colors on Windows
Default theme with OS specific colors on Windows

File last commit:

r529:73dc1554f5c7
r537:f223805ee598
Show More
qlegend.h
41 lines | 849 B | text/x-c | CLexer
#ifndef QLEGEND_H
#define QLEGEND_H
#include "qchartglobal.h"
#include "qseries.h"
#include <QGraphicsObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class Domain;
class LegendMarker;
class QTCOMMERCIALCHART_EXPORT QLegend : public QGraphicsObject
{
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);
void handleGeometryChanged(const QRectF& size);
private:
void dataChanged();
void layoutChanged();
QRectF mBoundingRect;
QList<QSeries*> mSeriesList;
QList<LegendMarker*> mMarkers;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QLEGEND_H