qchartwidget.h
36 lines
| 688 B
| text/x-c
|
CLexer
/ src / qchartwidget.h
|
r19 | #ifndef QCHARTWIDGET_H | ||
#define QCHARTWIDGET_H | ||||
#include "qchartconfig.h" | ||||
#include "qchart.h" | ||||
#include <QWidget> | ||||
QCHART_BEGIN_NAMESPACE | ||||
|
r21 | class QChartSeries; | ||
|
r19 | class QChartWidgetPrivate; | ||
class QCHART_EXPORT QChartWidget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit QChartWidget(QWidget *parent = 0); | ||||
~QChartWidget(); | ||||
|
r21 | //implement from QWidget | ||
void resizeEvent(QResizeEvent *event); | ||||
|
r29 | QSize sizeHint() const; | ||
|
r19 | |||
|
r21 | void addSeries(QChartSeries* series); | ||
protected: | ||||
QChartWidgetPrivate * const d_ptr; | ||||
|
r19 | |||
private: | ||||
Q_DISABLE_COPY(QChartWidget) | ||||
|
r21 | Q_DECLARE_PRIVATE(QChartWidget) | ||
|
r19 | }; | ||
QCHART_END_NAMESPACE | ||||
#endif // QCHARTWIDGET_H | ||||