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 QT3DINPUT_QINPUTSETTINGS_H |
5 | #define QT3DINPUT_QINPUTSETTINGS_H |
6 | |
7 | #include <Qt3DInput/qt3dinput_global.h> |
8 | #include <Qt3DCore/qcomponent.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DInput { |
13 | |
14 | class QInputSettingsPrivate; |
15 | |
16 | class Q_3DINPUTSHARED_EXPORT QInputSettings : public Qt3DCore::QComponent |
17 | { |
18 | Q_OBJECT |
19 | Q_PROPERTY(QObject *eventSource READ eventSource WRITE setEventSource NOTIFY eventSourceChanged) |
20 | public: |
21 | explicit QInputSettings(Qt3DCore::QNode *parent = nullptr); |
22 | ~QInputSettings(); |
23 | |
24 | QObject *eventSource() const; |
25 | |
26 | public Q_SLOTS: |
27 | void setEventSource(QObject *eventSource); |
28 | |
29 | Q_SIGNALS: |
30 | void eventSourceChanged(QObject *); |
31 | |
32 | private: |
33 | Q_DECLARE_PRIVATE(QInputSettings) |
34 | void eventSourceDestroyed(); |
35 | }; |
36 | |
37 | } // Qt3DInput |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // QINPUTSETTINGS_H |
42 | |