##// END OF EJS Templates
QBar series: Model related members initializations added to constructor
QBar series: Model related members initializations added to constructor

File last commit:

r524:280ce33a2f47
r528:631ae1704892
Show More
qlegend.h
36 lines | 667 B | text/x-c | CLexer
sauimone
framework for legend
r524 #ifndef QLEGEND_H
#define QLEGEND_H
#include "qchartglobal.h"
#include "qseries.h"
#include <QGraphicsObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class Domain;
class 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);
private:
QRectF mBoundingRect;
QList<QSeries*> mSeriesList;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QLEGEND_H