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 CHARTDATETIMEAXISY_H |
14 | #define CHARTDATETIMEAXISY_H |
15 | |
16 | #include <private/verticalaxis_p.h> |
17 | #include <QtCharts/private/qchartglobal_p.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class QDateTimeAxis; |
22 | |
23 | class Q_CHARTS_PRIVATE_EXPORT ChartDateTimeAxisY : public VerticalAxis |
24 | { |
25 | Q_OBJECT |
26 | public: |
27 | ChartDateTimeAxisY(QDateTimeAxis *axis, QGraphicsItem* item = 0); |
28 | ~ChartDateTimeAxisY(); |
29 | |
30 | QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const override; |
31 | protected: |
32 | QList<qreal> calculateLayout() const override; |
33 | void updateGeometry() override; |
34 | private Q_SLOTS: |
35 | void handleTickCountChanged(int tick); |
36 | void handleFormatChanged(const QString &format); |
37 | |
38 | private: |
39 | QDateTimeAxis *m_axis; |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif /* CHARTDATETIMEAXISY_H */ |
45 | |