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 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QAbstractAxis; |
23 | |
24 | class QXYSeriesPrivate : public QAbstractSeriesPrivate |
25 | { |
26 | public: |
27 | QXYSeriesPrivate(); |
28 | |
29 | void setPointSelected(qsizetype index, bool selected, bool &callSignal); |
30 | bool isPointSelected(qsizetype index) const; |
31 | |
32 | protected: |
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 | |
41 | private: |
42 | Q_DECLARE_PUBLIC(QXYSeries) |
43 | |
44 | friend class QGraphPointAnimation; |
45 | friend class QGraphTransition; |
46 | }; |
47 | |
48 | QT_END_NAMESPACE |
49 | |
50 | #endif |
51 |
Definitions
Learn Advanced QML with KDAB
Find out more