1// Copyright (C) 2023 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 Graphs 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 QXYSERIES_P_H
14#define QXYSERIES_P_H
15
16#include <QtGraphs/qxyseries.h>
17#include <private/qabstractseries_p.h>
18#include <private/qgraphtransition_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QAbstractAxis;
23
24class QXYSeriesPrivate : public QAbstractSeriesPrivate
25{
26public:
27 QXYSeriesPrivate();
28
29 void setPointSelected(qsizetype index, bool selected, bool &callSignal);
30 bool isPointSelected(qsizetype index) const;
31
32protected:
33 QList<QPointF> m_points;
34 QSet<qsizetype> m_selectedPoints;
35 QColor m_color = QColor(Qt::transparent);
36 QColor m_selectedColor = QColor(Qt::transparent);
37 QQmlComponent *m_pointDelegate = nullptr;
38 QGraphTransition *m_graphTransition = nullptr;
39 bool m_draggable = false;
40
41private:
42 Q_DECLARE_PUBLIC(QXYSeries)
43
44 friend class QGraphPointAnimation;
45 friend class QGraphTransition;
46};
47
48QT_END_NAMESPACE
49
50#endif
51

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs2d/xychart/qxyseries_p.h