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

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