diff --git a/src/qchart_p.h b/src/qchart_p.h new file mode 100644 index 0000000..34ba1e2 --- /dev/null +++ b/src/qchart_p.h @@ -0,0 +1,40 @@ +#ifndef QCHART_P_H +#define QCHART_P_H + +#include "private/qgraphicswidget_p.h" +#include "qchartaxis.h" +#include "qlegend.h" +#include "chartpresenter_p.h" +#include "chartdataset_p.h" +#include "chartbackground_p.h" + +QTCOMMERCIALCHART_BEGIN_NAMESPACE + +class QChart; + +class QChartPrivate +{ +public: + QChartPrivate(QChart *parent); + ~QChartPrivate(); + + void createChartBackgroundItem(); + void createChartTitleItem(); + void updateLayout(); + void updateLegendLayout(); + + QChart *q_ptr; + ChartBackground* m_backgroundItem; + QGraphicsSimpleTextItem* m_titleItem; + QRectF m_rect; + QLegend* m_legend; + ChartDataSet *m_dataset; + ChartPresenter *m_presenter; + int m_padding; + int m_backgroundPadding; + + Q_DECLARE_PUBLIC(QChart); +}; + +QTCOMMERCIALCHART_END_NAMESPACE +#endif