1 | // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
2 | // SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org> |
3 | |
4 | #pragma once |
5 | |
6 | #include <optional> |
7 | |
8 | #include <QObject> |
9 | #include <QQmlEngine> |
10 | #include <QQmlParserStatus> |
11 | |
12 | class QQuickWindow; |
13 | |
14 | class TransientMagicianAssistant : public QObject, public QQmlParserStatus |
15 | { |
16 | Q_OBJECT |
17 | Q_INTERFACES(QQmlParserStatus) |
18 | QML_ELEMENT |
19 | public: |
20 | using QObject::QObject; |
21 | |
22 | void classBegin() override; |
23 | void componentComplete() override; |
24 | std::optional<QQuickWindow *> findWindowParent(); |
25 | }; |
26 | |