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

source code of qtcharts/src/charts/axis/categoryaxis/chartcategoryaxisy_p.h