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 QCANDLESTICKSET_P_H
14#define QCANDLESTICKSET_P_H
15
16#include <QtCharts/QChartGlobal>
17#include <QtCharts/private/qchartglobal_p.h>
18#include <QtGui/QBrush>
19#include <QtGui/QPen>
20
21QT_BEGIN_NAMESPACE
22
23class QCandlestickSeriesPrivate;
24class QCandlestickSet;
25
26class Q_CHARTS_PRIVATE_EXPORT QCandlestickSetPrivate : public QObject
27{
28 Q_OBJECT
29
30public:
31 QCandlestickSetPrivate(qreal timestamp, QCandlestickSet *parent);
32 ~QCandlestickSetPrivate();
33
34 bool setTimestamp(qreal timestamp);
35
36Q_SIGNALS:
37 void updatedLayout();
38 void updatedCandlestick();
39
40private:
41 QCandlestickSet *q_ptr;
42 qreal m_timestamp;
43 qreal m_open;
44 qreal m_high;
45 qreal m_low;
46 qreal m_close;
47 QBrush m_brush;
48 QPen m_pen;
49 QCandlestickSeriesPrivate *m_series;
50
51private:
52 Q_DECLARE_PUBLIC(QCandlestickSet)
53 friend class QCandlestickSeriesPrivate;
54};
55
56QT_END_NAMESPACE
57
58#endif // QCANDLESTICKSET_P_H
59

source code of qtcharts/src/charts/candlestickchart/qcandlestickset_p.h