1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #include "declarativescene_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | Declarative3DScene::Declarative3DScene(QObject *parent) |
9 | : Q3DScene(parent) |
10 | { |
11 | QObject::connect(sender: this, signal: &Q3DScene::selectionQueryPositionChanged, context: this, |
12 | slot: &Declarative3DScene::selectionQueryPositionChanged); |
13 | } |
14 | |
15 | Declarative3DScene::~Declarative3DScene() |
16 | { |
17 | } |
18 | |
19 | void Declarative3DScene::setSelectionQueryPosition(const QPointF &point) |
20 | { |
21 | Q3DScene::setSelectionQueryPosition(point.toPoint()); |
22 | } |
23 | |
24 | QPointF Declarative3DScene::selectionQueryPosition() const |
25 | { |
26 | return QPointF(Q3DScene::selectionQueryPosition()); |
27 | } |
28 | |
29 | QPoint Declarative3DScene::invalidSelectionPoint() const |
30 | { |
31 | return Q3DScene::invalidSelectionPoint(); |
32 | } |
33 | |
34 | QT_END_NAMESPACE |
35 |