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 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DRender { |
14 | |
15 | class QFilterKeyPrivate; |
16 | |
17 | class 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) |
22 | public: |
23 | explicit QFilterKey(Qt3DCore::QNode *parent = nullptr); |
24 | ~QFilterKey(); |
25 | |
26 | QVariant value() const; |
27 | QString name() const; |
28 | |
29 | public Q_SLOTS: |
30 | void setValue(const QVariant &value); |
31 | void setName(const QString &customType); |
32 | |
33 | Q_SIGNALS: |
34 | void nameChanged(const QString &name); |
35 | void valueChanged(const QVariant &value); |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(QFilterKey) |
39 | }; |
40 | |
41 | } // namespace Qt3DRender |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QT3DRENDER_QFILTERKEY_H |
46 | |