qchart.h
43 lines
| 781 B
| text/x-c
|
CLexer
/ src / qchart.h
|
r12 | #ifndef CHART_H | ||
#define CHART_H | ||||
#include <qchartconfig.h> | ||||
#include <QGraphicsItem> | ||||
QCHART_BEGIN_NAMESPACE | ||||
|
r21 | class Axis; | ||
class XYGrid; | ||||
class QChartSeries; | ||||
|
r25 | class XYPlotDomain; | ||
|
r28 | class QChartPrivate; | ||
|
r21 | |||
|
r12 | class QCHART_EXPORT QChart : public QGraphicsItem | ||
{ | ||||
public: | ||||
|
r21 | QChart(QGraphicsItem* parent = 0); | ||
|
r12 | virtual ~QChart(); | ||
|
r21 | //from QGraphicsItem | ||
virtual QRectF boundingRect() const; | ||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){}; | ||||
void addSeries(QChartSeries* series); | ||||
|
r12 | |||
|
r21 | virtual void setSize(const QSizeF& rect); | ||
|
r12 | void setMargin(int margin); | ||
|
r28 | int margin() const; | ||
protected: | ||||
QChartPrivate * const d_ptr; | ||||
|
r12 | |||
private: | ||||
|
r28 | Q_DISABLE_COPY(QChart) | ||
Q_DECLARE_PRIVATE(QChart) | ||||
|
r12 | }; | ||
QCHART_END_NAMESPACE | ||||
#endif | ||||