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
8QT_BEGIN_NAMESPACE
9
10namespace Qt3DInput {
11namespace Input {
12
13BackendNode::BackendNode(Mode mode)
14 : Qt3DCore::QBackendNode(mode)
15{
16}
17
18BackendNode::BackendNode(Qt3DCore::QBackendNodePrivate &dd)
19 : Qt3DCore::QBackendNode(dd)
20{
21
22}
23
24BackendNode::~BackendNode()
25{
26}
27
28void 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
38QT_END_NAMESPACE
39

source code of qt3d/src/input/backend/backendnode.cpp