summaryrefslogtreecommitdiffstats
path: root/src/qchart_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@digia.com>2012-03-27 16:20:37 +0300
committerMichal Klocek <michal.klocek@digia.com>2012-03-27 16:20:37 +0300
commitcbfa42b49a4af12e306aeee2d6e19730b075e80d (patch)
treea91b150443ec426f2294f387b75e792f833cdbb3 /src/qchart_p.h
parent344f31f1bb279450b52292ea555ac3791cb684ab (diff)
Adds missing qchart_p.h
Diffstat (limited to 'src/qchart_p.h')
-rw-r--r--src/qchart_p.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/qchart_p.h b/src/qchart_p.h
new file mode 100644
index 00000000..34ba1e2b
--- /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