1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QBOXPLOTMODELMAPPER_H
5#define QBOXPLOTMODELMAPPER_H
6
7#include <QtCharts/QChartGlobal>
8#include <QtCore/QObject>
9
10Q_MOC_INCLUDE(<QtCharts/qboxplotseries.h>)
11
12QT_BEGIN_NAMESPACE
13class QAbstractItemModel;
14QT_END_NAMESPACE
15
16QT_BEGIN_NAMESPACE
17
18class QBoxPlotModelMapperPrivate;
19class QBoxPlotSeries;
20
21class Q_CHARTS_EXPORT QBoxPlotModelMapper : public QObject
22{
23 Q_OBJECT
24
25protected:
26 explicit QBoxPlotModelMapper(QObject *parent = nullptr);
27
28 QAbstractItemModel *model() const;
29 void setModel(QAbstractItemModel *model);
30
31 QBoxPlotSeries *series() const;
32 void setSeries(QBoxPlotSeries *series);
33
34 int first() const;
35 void setFirst(int first);
36
37 int count() const;
38 void setCount(int count);
39
40 int firstBoxSetSection() const;
41 void setFirstBoxSetSection(int firstBoxSetSection);
42
43 int lastBoxSetSection() const;
44 void setLastBoxSetSection(int lastBoxSetSection);
45
46 Qt::Orientation orientation() const;
47 void setOrientation(Qt::Orientation orientation);
48
49protected:
50 QBoxPlotModelMapperPrivate * const d_ptr;
51 Q_DECLARE_PRIVATE(QBoxPlotModelMapper)
52};
53
54QT_END_NAMESPACE
55
56#endif // QBOXPLOTMODELMAPPER_H
57

source code of qtcharts/src/charts/boxplotchart/qboxplotmodelmapper.h