1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QABSTRACTDATAPROXY_H |
5 | #define QABSTRACTDATAPROXY_H |
6 | |
7 | #include <QtCore/qobject.h> |
8 | #include <QtCore/qscopedpointer.h> |
9 | #include <QtGraphs/qgraphsglobal.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QAbstractDataProxyPrivate; |
14 | |
15 | class Q_GRAPHS_EXPORT QAbstractDataProxy : public QObject |
16 | { |
17 | Q_OBJECT |
18 | Q_DECLARE_PRIVATE(QAbstractDataProxy) |
19 | Q_CLASSINFO("RegisterEnumClassesUnscoped", "false") |
20 | Q_PROPERTY(QAbstractDataProxy::DataType type READ type CONSTANT) |
21 | |
22 | public: |
23 | enum class DataType { |
24 | None, |
25 | Bar, |
26 | Scatter, |
27 | Surface, |
28 | }; |
29 | Q_ENUM(DataType) |
30 | |
31 | protected: |
32 | explicit QAbstractDataProxy(QAbstractDataProxyPrivate &d, QObject *parent = nullptr); |
33 | |
34 | public: |
35 | ~QAbstractDataProxy() override; |
36 | |
37 | QAbstractDataProxy::DataType type() const; |
38 | |
39 | private: |
40 | Q_DISABLE_COPY(QAbstractDataProxy) |
41 | |
42 | friend class QAbstract3DSeriesPrivate; |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif |
48 |