5#ifndef QQMLCLASSICPREVIEWHANDLER_H
6#define QQMLCLASSICPREVIEWHANDLER_H
21#include <QtCore/qpointer.h>
22#include <QtQml/qqmlcomponent.h>
38 void load(
const QUrl &url)
final;
41 void dropCU(
const QUrl &url);
45 void zoom(qreal newFactor);
47 void beforeSynchronizing();
48 void afterSynchronizing();
49 void beforeRendering();
52 void tryCreateObject();
53 void showObject(QObject *object);
55 bool eventFilter(QObject *obj, QEvent *event)
final;
57 QScopedPointer<QQuickItem> m_dummyItem;
58 QList<QPointer<QObject>> m_createdObjects;
59 QScopedPointer<QQmlComponent> m_component;
61 qreal m_zoomFactor = 1.0;
62 bool m_supportsMultipleWindows;
void load(const QUrl &url) final
void removeEngine(QQmlEngine *engine) final
void connectToService(QQmlPreviewServiceImpl *service) final
~QQmlClassicPreviewHandler() override
bool eventFilter(QObject *obj, QEvent *event) final
Filters events if this object has been installed as an event filter for the watched object.
void setCurrentRootItem(QQuickItem *item)
void setCurrentWindow(QQuickWindow *window)
virtual void removeEngine(QQmlEngine *engine)
QQuickWindow * currentWindow() const
virtual void connectToService(QQmlPreviewServiceImpl *service)
Combined button and popup list for selecting options.
static Qt::WindowFlags fixFlags(Qt::WindowFlags flags)
static void closeAllWindows()
const bool quitLockEnabled