Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlinplacepreviewhandler.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QQMLINPLACEPREVIEWHANDLER_H
6#define QQMLINPLACEPREVIEWHANDLER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20
21QT_BEGIN_NAMESPACE
22
23class QQmlInPlacePreviewHandler : public QQmlPreviewHandler
24{
25 Q_OBJECT
26public:
27 explicit QQmlInPlacePreviewHandler(QObject *parent = nullptr);
28 ~QQmlInPlacePreviewHandler() override;
29
30 void connectToService(QQmlPreviewServiceImpl *service) final;
31 void load(const QUrl &url) final;
32
33Q_SIGNALS:
34 void hotReloadFailure(const QString &reason);
35
36private:
37 QList<QUrl> m_droppedUrls;
38};
39
40QT_END_NAMESPACE
41
42#endif // QQMLINPLACEPREVIEWHANDLER_H
Combined button and popup list for selecting options.
static void updateResolvedTypeReferences(QV4::ExecutionEngine *v4, const QList< QQmlRefPointer< QV4::CompiledData::CompilationUnit > > &droppedUnits)
static void updateInplace(QQmlComponent *component, std::shared_ptr< InplaceUpdate > inplaceUpdate)
void findCurrentRootObject(QQmlEngine *engine, const QUrl &url, QQmlPreviewHandler *receiver)
QQuickWindow * findCurrentWindow()
void updateEngine(std::shared_ptr< InplaceUpdate > inplaceUpdate, const QList< QUrl > &urls)
QQmlRefPointer< QV4::ExecutableCompilationUnit > newUnit
std::unique_ptr< QQmlComponent > component
QQmlRefPointer< QV4::ExecutableCompilationUnit > oldUnit
QQmlPreview::PatchResult patchResult
std::vector< ComponentUpdate > pendingComponentUpdates
QList< QQmlRefPointer< QV4::CompiledData::CompilationUnit > > droppedUnits
InplaceUpdate(QQmlInPlacePreviewHandler *handler, QQmlEngine *engine)
void emitError(const QString &message)
void emitReloadFailure(const QString &message)
std::vector< ComponentUpdate > processedComponentUpdates