1// Copyright (C) 2016 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 Qt Chart 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 <QtCharts/QValueAxis>
17#include <private/qabstractaxis_p.h>
18#include <QtCharts/private/qchartglobal_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class Q_CHARTS_PRIVATE_EXPORT QValueAxisPrivate : public QAbstractAxisPrivate
23{
24 Q_OBJECT
25public:
26 QValueAxisPrivate(QValueAxis *q);
27 ~QValueAxisPrivate();
28
29public:
30 void initializeGraphics(QGraphicsItem* parent) override;
31 void initializeDomain(AbstractDomain *domain) override;
32
33 qreal min() override { return m_min; }
34 qreal max() override { return m_max; }
35 void setRange(qreal min,qreal max) override;
36
37 qreal tickInterval() { return m_tickInterval; }
38 qreal tickAnchor() { return m_tickAnchor; }
39
40protected:
41 void setMin(const QVariant &min) override;
42 void setMax(const QVariant &max) override;
43 void setRange(const QVariant &min, const QVariant &max) override;
44
45private:
46 qreal m_min;
47 qreal m_max;
48 int m_tickCount;
49 int m_minorTickCount;
50 QString m_format;
51 bool m_applying;
52 qreal m_tickInterval;
53 qreal m_tickAnchor;
54 QValueAxis::TickType m_tickType;
55 Q_DECLARE_PUBLIC(QValueAxis)
56};
57
58QT_END_NAMESPACE
59
60#endif // QVALUEAXIS_P_H
61

source code of qtcharts/src/charts/axis/valueaxis/qvalueaxis_p.h