1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QBOXPLOTLEGENDMARKER_H
5#define QBOXPLOTLEGENDMARKER_H
6
7#include <QtCharts/QChartGlobal>
8#include <QtCharts/QLegendMarker>
9#include <QtCharts/QBoxPlotSeries>
10
11QT_BEGIN_NAMESPACE
12
13class QBoxPlotLegendMarkerPrivate;
14
15class Q_CHARTS_EXPORT QBoxPlotLegendMarker : public QLegendMarker
16{
17 Q_OBJECT
18
19public:
20 explicit QBoxPlotLegendMarker(QBoxPlotSeries *series, QLegend *legend, QObject *parent = nullptr);
21 virtual ~QBoxPlotLegendMarker();
22
23 LegendMarkerType type() override { return LegendMarkerTypeBoxPlot; }
24
25 // Related series
26 QBoxPlotSeries* series() override;
27
28protected:
29 QBoxPlotLegendMarker(QBoxPlotLegendMarkerPrivate &d, QObject *parent = nullptr);
30
31private:
32 Q_DECLARE_PRIVATE(QBoxPlotLegendMarker)
33 Q_DISABLE_COPY(QBoxPlotLegendMarker)
34};
35
36QT_END_NAMESPACE
37
38#endif // QBOXPLOTLEGENDMARKER_H
39

source code of qtcharts/src/charts/legend/qboxplotlegendmarker.h