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

source code of qtcharts/src/charts/axis/coloraxis/chartcoloraxisy_p.h