| 1 | // Copyright (C) 2024 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // |
| 5 | // W A R N I N G |
| 6 | // ------------- |
| 7 | // |
| 8 | // This file is not part of the Qt API. It exists purely as an |
| 9 | // implementation detail. This header file may change from version to |
| 10 | // version without notice, or even be removed. |
| 11 | // |
| 12 | // We mean it. |
| 13 | // |
| 14 | |
| 15 | #ifndef Q3DGRAPHSWIDGETITEM_P_H |
| 16 | #define Q3DGRAPHSWIDGETITEM_P_H |
| 17 | |
| 18 | #include <QtGraphsWidgets/q3dgraphswidgetitem.h> |
| 19 | #include <private/qobject_p.h> |
| 20 | |
| 21 | QT_BEGIN_NAMESPACE |
| 22 | |
| 23 | class Q3DGraphsWidgetItemPrivate : public QObjectPrivate |
| 24 | { |
| 25 | public: |
| 26 | Q3DGraphsWidgetItemPrivate() = default; |
| 27 | |
| 28 | void createGraph(); |
| 29 | void onWheel(QQuickWheelEvent *event); |
| 30 | |
| 31 | std::unique_ptr<QQuickGraphsItem> m_graphsItem; |
| 32 | QQuickWidget *m_widget = nullptr; |
| 33 | QString m_graphType; |
| 34 | |
| 35 | private: |
| 36 | Q_DISABLE_COPY_MOVE(Q3DGraphsWidgetItemPrivate) |
| 37 | Q_DECLARE_PUBLIC(Q3DGraphsWidgetItem) |
| 38 | }; |
| 39 | |
| 40 | QT_END_NAMESPACE |
| 41 | |
| 42 | #endif // Q3DGRAPHSWIDGETITEM_P_H |
| 43 |
