5#ifndef QQMLINPLACEPREVIEWHANDLER_H
6#define QQMLINPLACEPREVIEWHANDLER_H
21#include <private/qqmlpreviewdiff_p.h>
23#include <QtQml/qqmlcomponent.h>
30class QQmlInPlacePreviewHandler :
public QQmlPreviewHandler
34 explicit QQmlInPlacePreviewHandler(QObject *parent =
nullptr);
35 ~QQmlInPlacePreviewHandler() override;
37 void connectToService(QQmlPreviewServiceImpl *service) final;
38 void load(
const QUrl &url) final;
41 void hotReloadFailure(
const QString &reason);
44 QList<QUrl> m_droppedUrls;
void setCurrentRootItem(QQuickItem *item)
void setCurrentWindow(QQuickWindow *window)
virtual void connectToService(QQmlPreviewServiceImpl *service)
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)
std::unique_ptr< QQmlComponent > component
QQmlRefPointer< QV4::ExecutableCompilationUnit > oldUnit
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