1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4// W A R N I N G
5// -------------
6//
7// This file is not part of the Qt Chart API. It exists purely as an
8// implementation detail. This header file may change from version to
9// version without notice, or even be removed.
10//
11// We mean it.
12
13#ifndef QAREASERIES_P_H
14#define QAREASERIES_P_H
15
16#include <private/qabstractseries_p.h>
17#include <QtCharts/private/qchartglobal_p.h>
18
19QT_BEGIN_NAMESPACE
20
21class QAreaSeries;
22class QLineSeries;
23
24class Q_CHARTS_PRIVATE_EXPORT QAreaSeriesPrivate: public QAbstractSeriesPrivate
25{
26 Q_OBJECT
27
28public:
29 QAreaSeriesPrivate(QLineSeries *upperSeries, QLineSeries *lowerSeries, QAreaSeries *q);
30
31 void initializeDomain() override;
32 void initializeAxes() override;
33 void initializeGraphics(QGraphicsItem* parent) override;
34 void initializeTheme(int index, ChartTheme* theme, bool forced = false) override;
35 void initializeAnimations(QChart::AnimationOptions options, int duration,
36 QEasingCurve &curve) override;
37
38 QList<QLegendMarker *> createLegendMarkers(QLegend *legend) override;
39
40 QAbstractAxis::AxisType defaultAxisType(Qt::Orientation orientation) const override;
41 QAbstractAxis* createDefaultAxis(Qt::Orientation) const override;
42
43Q_SIGNALS:
44 void updated();
45
46protected:
47 QBrush m_brush;
48 QPen m_pen;
49 QLineSeries *m_upperSeries;
50 QLineSeries *m_lowerSeries;
51 bool m_pointsVisible;
52 QString m_pointLabelsFormat;
53 bool m_pointLabelsVisible;
54 QFont m_pointLabelsFont;
55 QColor m_pointLabelsColor;
56 bool m_pointLabelsClipping;
57
58private:
59 Q_DECLARE_PUBLIC(QAreaSeries);
60};
61
62QT_END_NAMESPACE
63
64#endif
65

source code of qtcharts/src/charts/areachart/qareaseries_p.h