qchartwidget.h
38 lines
| 887 B
| text/x-c
|
CLexer
/ src / qchartwidget.h
|
r19 | #ifndef QCHARTWIDGET_H | ||
#define QCHARTWIDGET_H | ||||
|
r30 | #include "qchartglobal.h" | ||
|
r19 | #include "qchart.h" | ||
#include <QWidget> | ||||
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
|
r19 | |||
|
r21 | class QChartSeries; | ||
|
r19 | class QChartWidgetPrivate; | ||
|
r30 | class QTCOMMERCIALCHART_EXPORT QChartWidget : public QWidget | ||
|
r19 | { | ||
Q_OBJECT | ||||
public: | ||||
explicit QChartWidget(QWidget *parent = 0); | ||||
~QChartWidget(); | ||||
|
r21 | //implement from QWidget | ||
void resizeEvent(QResizeEvent *event); | ||||
|
r29 | QSize sizeHint() const; | ||
|
r19 | |||
|
r42 | // TODO: addSeries and createSeries are optional solutions | ||
|
r21 | void addSeries(QChartSeries* series); | ||
|
r42 | QChartSeries* createSeries(QList<qreal> x, QList<qreal> y, QChartSeries::QChartSeriesType type); | ||
|
r21 | protected: | ||
QChartWidgetPrivate * const d_ptr; | ||||
|
r19 | |||
private: | ||||
Q_DISABLE_COPY(QChartWidget) | ||||
|
r21 | Q_DECLARE_PRIVATE(QChartWidget) | ||
|
r19 | }; | ||
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
|
r19 | |||
#endif // QCHARTWIDGET_H | ||||