| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QVCANDLESTICKMODELMAPPER_H |
| 5 | #define QVCANDLESTICKMODELMAPPER_H |
| 6 | |
| 7 | #include <QtCharts/QCandlestickModelMapper> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | /* Comment line for syncqt to generate the fwd-include correctly, due to QTBUG-22432 */ |
| 11 | class Q_CHARTS_EXPORT QVCandlestickModelMapper : public QCandlestickModelMapper |
| 12 | { |
| 13 | Q_OBJECT |
| 14 | Q_PROPERTY(int timestampRow READ timestampRow WRITE setTimestampRow NOTIFY timestampRowChanged) |
| 15 | Q_PROPERTY(int openRow READ openRow WRITE setOpenRow NOTIFY openRowChanged) |
| 16 | Q_PROPERTY(int highRow READ highRow WRITE setHighRow NOTIFY highRowChanged) |
| 17 | Q_PROPERTY(int lowRow READ lowRow WRITE setLowRow NOTIFY lowRowChanged) |
| 18 | Q_PROPERTY(int closeRow READ closeRow WRITE setCloseRow NOTIFY closeRowChanged) |
| 19 | Q_PROPERTY(int firstSetColumn READ firstSetColumn WRITE setFirstSetColumn NOTIFY firstSetColumnChanged) |
| 20 | Q_PROPERTY(int lastSetColumn READ lastSetColumn WRITE setLastSetColumn NOTIFY lastSetColumnChanged) |
| 21 | |
| 22 | public: |
| 23 | explicit QVCandlestickModelMapper(QObject *parent = nullptr); |
| 24 | |
| 25 | Qt::Orientation orientation() const override; |
| 26 | |
| 27 | void setTimestampRow(int timestampRow); |
| 28 | int timestampRow() const; |
| 29 | |
| 30 | void setOpenRow(int openRow); |
| 31 | int openRow() const; |
| 32 | |
| 33 | void setHighRow(int highRow); |
| 34 | int highRow() const; |
| 35 | |
| 36 | void setLowRow(int lowRow); |
| 37 | int lowRow() const; |
| 38 | |
| 39 | void setCloseRow(int closeRow); |
| 40 | int closeRow() const; |
| 41 | |
| 42 | void setFirstSetColumn(int firstSetColumn); |
| 43 | int firstSetColumn() const; |
| 44 | |
| 45 | void setLastSetColumn(int lastSetColumn); |
| 46 | int lastSetColumn() const; |
| 47 | |
| 48 | Q_SIGNALS: |
| 49 | void timestampRowChanged(); |
| 50 | void openRowChanged(); |
| 51 | void highRowChanged(); |
| 52 | void lowRowChanged(); |
| 53 | void closeRowChanged(); |
| 54 | void firstSetColumnChanged(); |
| 55 | void lastSetColumnChanged(); |
| 56 | }; |
| 57 | |
| 58 | QT_END_NAMESPACE |
| 59 | |
| 60 | #endif // QVCANDLESTICKMODELMAPPER_H |
| 61 | |