1// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB)
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGNODE_P_H
5#define QSGNODE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qglobal_p.h>
19
20#include "qsgnode.h"
21
22QT_BEGIN_NAMESPACE
23
24class QSGNodePrivate
25{
26public:
27 QSGNodePrivate() {}
28 virtual ~QSGNodePrivate() {}
29
30#ifdef QSG_RUNTIME_DESCRIPTION
31 static void setDescription(QSGNode *node, const QString &description) {
32 node->d_ptr->descr= description;
33 }
34 static QString description(const QSGNode *node) {
35 return node->d_ptr->descr;
36 }
37 QString descr;
38#endif
39};
40
41
42class QSGBasicGeometryNodePrivate : public QSGNodePrivate
43{
44public:
45 QSGBasicGeometryNodePrivate() {}
46};
47
48
49class QSGGeometryNodePrivate: public QSGBasicGeometryNodePrivate
50{
51public:
52 QSGGeometryNodePrivate() {}
53};
54
55QT_END_NAMESPACE
56
57#endif // QSGNODE_P_H
58

source code of qtdeclarative/src/quick/scenegraph/coreapi/qsgnode_p.h