5#ifndef QQMLINPLACEPREVIEWHANDLER_H
6#define QQMLINPLACEPREVIEWHANDLER_H
23class QQmlInPlacePreviewHandler :
public QQmlPreviewHandler
27 explicit QQmlInPlacePreviewHandler(QObject *parent =
nullptr);
28 ~QQmlInPlacePreviewHandler() override;
30 void connectToService(QQmlPreviewServiceImpl *service) final;
31 void load(
const QUrl &url) final;
34 void hotReloadFailure(
const QString &reason);
37 QList<QUrl> m_droppedUrls;
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