1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4// W A R N I N G
5// -------------
6//
7// This file is not part of the QtGraphs API. It exists purely as an
8// implementation detail. This header file may change from version to
9// version without notice, or even be removed.
10//
11// We mean it.
12
13#ifndef QVALUEAXIS_P_H
14#define QVALUEAXIS_P_H
15
16#include <QtGraphs/QValueAxis>
17#include <private/qabstractaxis_p.h>
18
19QT_BEGIN_NAMESPACE
20
21class QValueAxisPrivate : public QAbstractAxisPrivate
22{
23public:
24 QValueAxisPrivate();
25 ~QValueAxisPrivate() override;
26
27public:
28 qreal min() override { return m_min; }
29 qreal max() override { return m_max; }
30 void setRange(qreal min,qreal max) override;
31
32protected:
33 void setMin(const QVariant &min) override;
34 void setMax(const QVariant &max) override;
35 void setRange(const QVariant &min, const QVariant &max) override;
36
37private:
38 qreal m_min;
39 qreal m_max;
40 qsizetype m_subTickCount;
41 QString m_format;
42 int m_decimals;
43 qreal m_tickAnchor;
44 qreal m_tickInterval;
45 Q_DECLARE_PUBLIC(QValueAxis)
46};
47
48QT_END_NAMESPACE
49
50#endif // QVALUEAXIS_P_H
51

source code of qtgraphs/src/graphs2d/axis/valueaxis/qvalueaxis_p.h