1
/****************************************************************************
2
** Copyright (C) 2008 Klarälvdalens Datakonsult AB. All rights reserved.
4
** This file is part of the KD Chart library.
6
** This file may be used under the terms of the GNU General Public
7
** License versions 2.0 or 3.0 as published by the Free Software
8
** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
9
** included in the packaging of this file. Alternatively you may (at
10
** your option) use any later version of the GNU General Public
11
** License if such license has been publicly approved by
12
** Klarälvdalens Datakonsult AB (or its successors, if any).
14
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
15
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
16
** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
17
** not expressly granted herein.
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
**********************************************************************/
24
#ifndef KDCHARTSTOCKBARATTRIBUTES_H
25
#define KDCHARTSTOCKBARATTRIBUTES_H
28
#include "KDChartGlobal.h"
33
* @brief Attributes to customize the appearance of a column in a stock chart
35
class KDCHART_EXPORT StockBarAttributes
39
StockBarAttributes( const StockBarAttributes& );
40
StockBarAttributes &operator= ( const StockBarAttributes& );
42
~StockBarAttributes();
44
void setCandlestickWidth( qreal width );
45
qreal candlestickWidth() const;
47
void setTickLength( qreal length );
48
qreal tickLength() const;
50
bool operator==( const StockBarAttributes& ) const;
51
inline bool operator!=( const StockBarAttributes& other ) const { return !operator==(other); }
56
Private * d_func() { return _d; }
57
const Private * d_func() const { return _d; }
62
Q_DECLARE_METATYPE( KDChart::StockBarAttributes )
64
#endif // KDCHARTSTOCKBARATTRIBUTES_H