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

source code of qt3d/src/input/frontend/qinputsettings.h