1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QBARDATAITEM_H |
5 | #define QBARDATAITEM_H |
6 | |
7 | #include <QtDataVisualization/qdatavisualizationglobal.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class QBarDataItemPrivate; |
12 | |
13 | class Q_DATAVISUALIZATION_EXPORT QBarDataItem |
14 | { |
15 | public: |
16 | QBarDataItem(); |
17 | QBarDataItem(float value); |
18 | QBarDataItem(float value, float angle); |
19 | QBarDataItem(const QBarDataItem &other); |
20 | ~QBarDataItem(); |
21 | |
22 | QBarDataItem &operator=(const QBarDataItem &other); |
23 | |
24 | inline void setValue(float val) { m_value = val; } |
25 | inline float value() const { return m_value; } |
26 | inline void setRotation(float angle) { m_angle = angle; } |
27 | inline float rotation() const { return m_angle; } |
28 | |
29 | protected: |
30 | void (); |
31 | |
32 | QBarDataItemPrivate *d_ptr; |
33 | |
34 | private: |
35 | float m_value; |
36 | float m_angle; |
37 | }; |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif |
42 | |