KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartStockBarAttributes.cpp
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
12
13#define d d_func()
14
15using namespace KDChart;
16
17class StockBarAttributes::Private
18{
19public:
20 Private();
21
22 qreal candlestickWidth = 0.3;
23 qreal tickLength = 0.15;
24};
25
26StockBarAttributes::Private::Private()
27{
28}
29
31 : _d(new Private)
32{
33}
34
36 : _d(new Private(*r.d))
37{
38}
39
41{
42 if (this == &r)
43 return *this;
44
45 *d = *r.d;
46
47 return *this;
48}
49
54
61{
62 d->candlestickWidth = width;
63}
68{
69 return d->candlestickWidth;
70}
71
78{
79 d->tickLength = length;
80}
81
86{
87 return d->tickLength;
88}
89
Attributes to customize the appearance of a column in a stock chart.
bool operator==(const StockBarAttributes &) const
StockBarAttributes & operator=(const StockBarAttributes &)

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8