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

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