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
12class QQuickWindow;
13
14class TransientMagicianAssistant : public QObject, public QQmlParserStatus
15{
16 Q_OBJECT
17 Q_INTERFACES(QQmlParserStatus)
18 QML_ELEMENT
19public:
20 using QObject::QObject;
21
22 void classBegin() override;
23 void componentComplete() override;
24 std::optional<QQuickWindow *> findWindowParent();
25};
26

source code of knewstuff/src/qtquick/private/transientmagicianassistant.h