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_QACTION_P_H
5#define QT3DINPUT_QACTION_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DCore/private/qnode_p.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Qt3DInput {
23
24/*!
25 \class Qt3DInput::QActionPrivate
26 \internal
27*/
28class QActionPrivate : public Qt3DCore::QNodePrivate
29{
30public:
31 QActionPrivate()
32 : Qt3DCore::QNodePrivate()
33 , m_active(false)
34 {}
35
36 Q_DECLARE_PUBLIC(QAction)
37
38 QList<QAbstractActionInput *> m_inputs;
39 bool m_active;
40
41 void setActive(bool active)
42 {
43 if (active != m_active) {
44 m_active = active;
45 Q_EMIT q_func()->activeChanged(isActive: active);
46 }
47 }
48};
49
50struct QActionData
51{
52 QList<Qt3DCore::QNodeId> inputIds;
53};
54
55} // namespace Qt3DInput
56
57QT_END_NAMESPACE
58
59#endif // QT3DINPUT_QACTION_P_H
60
61

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