KD Chart API Documentation  3.1
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 
15 using namespace KDChart;
16 
17 class StockBarAttributes::Private
18 {
19 public:
20  Private();
21 
22  qreal candlestickWidth = 0.3;
23  qreal tickLength = 0.15;
24 };
25 
26 StockBarAttributes::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 
51 {
52  delete _d;
53 }
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 
91 {
92  return candlestickWidth() == r.candlestickWidth() && tickLength() == r.tickLength();
93 }
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 by doxygen 1.9.1