1 | // Copyright (C) 2020 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 QT3DCORE_QCORESETTINGS_H |
5 | #define QT3DCORE_QCORESETTINGS_H |
6 | |
7 | #include <Qt3DCore/qcomponent.h> |
8 | #include <Qt3DCore/qt3dcore_global.h> |
9 | #include <QtCore/QSharedPointer> |
10 | |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | namespace Qt3DCore { |
15 | |
16 | class QCoreSettingsPrivate; |
17 | |
18 | class Q_3DCORESHARED_EXPORT QCoreSettings : public Qt3DCore::QComponent |
19 | { |
20 | Q_OBJECT |
21 | Q_PROPERTY(bool boundingVolumesEnabled WRITE setBoundingVolumesEnabled READ boundingVolumesEnabled NOTIFY boundingVolumesEnabledChanged) |
22 | public: |
23 | explicit QCoreSettings(Qt3DCore::QNode *parent = nullptr); |
24 | ~QCoreSettings(); |
25 | |
26 | bool boundingVolumesEnabled() const; |
27 | |
28 | public Q_SLOTS: |
29 | void setBoundingVolumesEnabled(bool boundingVolumesEnabled); |
30 | |
31 | Q_SIGNALS: |
32 | void boundingVolumesEnabledChanged(bool boundingVolumesEnabled); |
33 | |
34 | private: |
35 | Q_DECLARE_PRIVATE(QCoreSettings) |
36 | }; |
37 | |
38 | } // namespace Qt3DCore |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | #endif // QT3DCORE_QCORESETTINGS_H |
43 | |