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 QLOGVALUEAXIS_P_H
14#define QLOGVALUEAXIS_P_H
15
16#include <QtCharts/qlogvalueaxis.h>
17#include <private/qabstractaxis_p.h>
18#include <QtCharts/private/qchartglobal_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class Q_CHARTS_PRIVATE_EXPORT QLogValueAxisPrivate : public QAbstractAxisPrivate
23{
24 Q_OBJECT
25 public:
26 QLogValueAxisPrivate(QLogValueAxis *q);
27 ~QLogValueAxisPrivate();
28
29 public:
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 void updateTickCount();
38
39 protected:
40 void setMin(const QVariant &min) override;
41 void setMax(const QVariant &max) override;
42 void setRange(const QVariant &min, const QVariant &max) override;
43
44 protected:
45 qreal m_min;
46 qreal m_max;
47 qreal m_base;
48 int m_tickCount;
49 int m_minorTickCount;
50 QString m_labelFormat;
51 Q_DECLARE_PUBLIC(QLogValueAxis)
52};
53
54QT_END_NAMESPACE
55
56#endif // QLOGVALUEAXIS_P_H
57

source code of qtcharts/src/charts/axis/logvalueaxis/qlogvalueaxis_p.h