1// Copyright (C) 2014 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 QT3DRENDER_QFILTERKEY_H
5#define QT3DRENDER_QFILTERKEY_H
6
7#include <Qt3DRender/qt3drender_global.h>
8#include <Qt3DCore/qnode.h>
9#include <QtCore/QVariant>
10
11QT_BEGIN_NAMESPACE
12
13namespace Qt3DRender {
14
15class QFilterKeyPrivate;
16
17class Q_3DRENDERSHARED_EXPORT QFilterKey : public Qt3DCore::QNode
18{
19 Q_OBJECT
20 Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
21 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
22public:
23 explicit QFilterKey(Qt3DCore::QNode *parent = nullptr);
24 ~QFilterKey();
25
26 QVariant value() const;
27 QString name() const;
28
29public Q_SLOTS:
30 void setValue(const QVariant &value);
31 void setName(const QString &customType);
32
33Q_SIGNALS:
34 void nameChanged(const QString &name);
35 void valueChanged(const QVariant &value);
36
37private:
38 Q_DECLARE_PRIVATE(QFilterKey)
39};
40
41} // namespace Qt3DRender
42
43QT_END_NAMESPACE
44
45#endif // QT3DRENDER_QFILTERKEY_H
46

source code of qt3d/src/render/materialsystem/qfilterkey.h