1 | // Copyright (C) 2019 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 | #include "backendnode_p.h" |
5 | #include <Qt3DCore/qnode.h> |
6 | #include <Qt3DCore/private/qbackendnode_p.h> |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | namespace Qt3DInput { |
11 | namespace Input { |
12 | |
13 | BackendNode::BackendNode(Mode mode) |
14 | : Qt3DCore::QBackendNode(mode) |
15 | { |
16 | } |
17 | |
18 | BackendNode::BackendNode(Qt3DCore::QBackendNodePrivate &dd) |
19 | : Qt3DCore::QBackendNode(dd) |
20 | { |
21 | |
22 | } |
23 | |
24 | BackendNode::~BackendNode() |
25 | { |
26 | } |
27 | |
28 | void BackendNode::syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) |
29 | { |
30 | Q_UNUSED(firstTime); |
31 | |
32 | d_ptr->setEnabled(frontEnd->isEnabled()); |
33 | } |
34 | |
35 | } // namespace Input |
36 | } // namespace Qt3DInput |
37 | |
38 | QT_END_NAMESPACE |
39 |