1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QHCANDLESTICKMODELMAPPER_H
5#define QHCANDLESTICKMODELMAPPER_H
6
7#include <QtCharts/QCandlestickModelMapper>
8
9QT_BEGIN_NAMESPACE
10/* Comment line for syncqt to generate the fwd-include correctly, due to QTBUG-22432 */
11class Q_CHARTS_EXPORT QHCandlestickModelMapper : public QCandlestickModelMapper
12{
13 Q_OBJECT
14 Q_PROPERTY(int timestampColumn READ timestampColumn WRITE setTimestampColumn NOTIFY timestampColumnChanged)
15 Q_PROPERTY(int openColumn READ openColumn WRITE setOpenColumn NOTIFY openColumnChanged)
16 Q_PROPERTY(int highColumn READ highColumn WRITE setHighColumn NOTIFY highColumnChanged)
17 Q_PROPERTY(int lowColumn READ lowColumn WRITE setLowColumn NOTIFY lowColumnChanged)
18 Q_PROPERTY(int closeColumn READ closeColumn WRITE setCloseColumn NOTIFY closeColumnChanged)
19 Q_PROPERTY(int firstSetRow READ firstSetRow WRITE setFirstSetRow NOTIFY firstSetRowChanged)
20 Q_PROPERTY(int lastSetRow READ lastSetRow WRITE setLastSetRow NOTIFY lastSetRowChanged)
21
22public:
23 explicit QHCandlestickModelMapper(QObject *parent = nullptr);
24
25 Qt::Orientation orientation() const override;
26
27 void setTimestampColumn(int timestampColumn);
28 int timestampColumn() const;
29
30 void setOpenColumn(int openColumn);
31 int openColumn() const;
32
33 void setHighColumn(int highColumn);
34 int highColumn() const;
35
36 void setLowColumn(int lowColumn);
37 int lowColumn() const;
38
39 void setCloseColumn(int closeColumn);
40 int closeColumn() const;
41
42 void setFirstSetRow(int firstSetRow);
43 int firstSetRow() const;
44
45 void setLastSetRow(int lastSetRow);
46 int lastSetRow() const;
47
48Q_SIGNALS:
49 void timestampColumnChanged();
50 void openColumnChanged();
51 void highColumnChanged();
52 void lowColumnChanged();
53 void closeColumnChanged();
54 void firstSetRowChanged();
55 void lastSetRowChanged();
56};
57
58QT_END_NAMESPACE
59
60#endif // QHCANDLESTICKMODELMAPPER_H
61

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