diff options
Diffstat (limited to 'examples/quick/scenegraph/customrendernode/customrender.h')
-rw-r--r-- | examples/quick/scenegraph/customrendernode/customrender.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/customrendernode/customrender.h b/examples/quick/scenegraph/customrendernode/customrender.h index 962551c0b1..530e692678 100644 --- a/examples/quick/scenegraph/customrendernode/customrender.h +++ b/examples/quick/scenegraph/customrendernode/customrender.h @@ -1,5 +1,5 @@ // Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef CUSTOMRENDER_H #define CUSTOMRENDER_H @@ -7,6 +7,7 @@ #include <QQuickItem> #include <QVector2D> +//![item] class CustomRender : public QQuickItem { Q_OBJECT @@ -16,11 +17,10 @@ class CustomRender : public QQuickItem public: explicit CustomRender(QQuickItem *parent = nullptr); - const QList<QVector2D> &vertices() const; + QList<QVector2D> vertices() const; void setVertices(const QList<QVector2D> &newVertices); signals: - void verticesChanged(); protected: @@ -29,5 +29,6 @@ protected: private: QList<QVector2D> m_vertices; }; +//![item] #endif // CUSTOMRENDER_H |