| 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 | |
| 21 | QT_BEGIN_NAMESPACE |
| 22 | |
| 23 | class QCandlestickSeriesPrivate; |
| 24 | class QCandlestickSet; |
| 25 | |
| 26 | class Q_CHARTS_EXPORT QCandlestickSetPrivate : public QObject |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | |
| 30 | public: |
| 31 | QCandlestickSetPrivate(qreal timestamp, QCandlestickSet *parent); |
| 32 | ~QCandlestickSetPrivate(); |
| 33 | |
| 34 | bool setTimestamp(qreal timestamp); |
| 35 | |
| 36 | Q_SIGNALS: |
| 37 | void updatedLayout(); |
| 38 | void updatedCandlestick(); |
| 39 | |
| 40 | private: |
| 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 | |
| 51 | private: |
| 52 | Q_DECLARE_PUBLIC(QCandlestickSet) |
| 53 | friend class QCandlestickSeriesPrivate; |
| 54 | }; |
| 55 | |
| 56 | QT_END_NAMESPACE |
| 57 | |
| 58 | #endif // QCANDLESTICKSET_P_H |
| 59 |
