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