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