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 CHARTLOGVALUEAXISX_H
14#define CHARTLOGVALUEAXISX_H
15
16#include <private/horizontalaxis_p.h>
17#include <QtCharts/private/qchartglobal_p.h>
18
19QT_BEGIN_NAMESPACE
20
21class QLogValueAxis;
22
23class Q_CHARTS_PRIVATE_EXPORT ChartLogValueAxisX : public HorizontalAxis
24{
25 Q_OBJECT
26
27public:
28 ChartLogValueAxisX(QLogValueAxis *axis, QGraphicsItem *item);
29 ~ChartLogValueAxisX();
30
31 QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const override;
32
33protected:
34 QList<qreal> calculateLayout() const override;
35 void updateGeometry() override;
36
37private Q_SLOTS:
38 void handleBaseChanged(qreal base);
39 void handleLabelFormatChanged(const QString &format);
40
41private:
42 QLogValueAxis *m_axis;
43};
44
45QT_END_NAMESPACE
46
47#endif /* CHARTLOGVALUEAXISX_H */
48

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