1 | // Copyright (C) 2023 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the QtGraphs API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | |
14 | #ifndef QVALUE3DAXIS_P_H |
15 | #define QVALUE3DAXIS_P_H |
16 | |
17 | #include "qvalue3daxis.h" |
18 | #include "qabstract3daxis_p.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QValue3DAxisPrivate : public QAbstract3DAxisPrivate |
23 | { |
24 | Q_DECLARE_PUBLIC(QValue3DAxis) |
25 | |
26 | public: |
27 | QValue3DAxisPrivate(QValue3DAxis *q); |
28 | virtual ~QValue3DAxisPrivate(); |
29 | |
30 | void setRange(float min, float max, bool suppressWarnings = false) override; |
31 | void setMin(float min) override; |
32 | void setMax (float max) override; |
33 | |
34 | void emitLabelsChanged(); |
35 | void emitFormatterDirty(); |
36 | |
37 | protected: |
38 | void updateLabels() override; |
39 | |
40 | bool allowZero() override; |
41 | bool allowNegatives() override; |
42 | bool allowMinMaxSame() override; |
43 | |
44 | int m_segmentCount; |
45 | int m_subSegmentCount; |
46 | QString m_labelFormat; |
47 | bool m_labelsDirty; |
48 | QValue3DAxisFormatter *m_formatter; |
49 | bool m_reversed; |
50 | }; |
51 | |
52 | QT_END_NAMESPACE |
53 | |
54 | #endif |
55 | |