Libplasma
8#ifndef QUICKVIEWSHAREDENGINE_H
9#define QUICKVIEWSHAREDENGINE_H
11#include "plasmaquick_export.h"
13#include <QQmlComponent>
15#include <QQuickWindow>
24class QuickViewSharedEnginePrivate;
29class PLASMAQUICK_EXPORT QuickViewSharedEngine :
public QQuickWindow
33 Q_PROPERTY(ResizeMode resizeMode READ resizeMode WRITE setResizeMode NOTIFY resizeModeChanged)
35 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
44 explicit QuickViewSharedEngine(QWindow *parent =
nullptr);
45 ~QuickViewSharedEngine()
override;
62 void setTranslationDomain(
const QString &translationDomain);
67 QString translationDomain()
const;
69 std::shared_ptr<QQmlEngine> engine()
const;
70 QList<QQmlError> errors()
const;
71 QSize sizeHint()
const;
72 QSize initialSize()
const;
73 QQmlContext *rootContext()
const;
74 QQuickItem *rootObject()
const;
77 ResizeMode resizeMode()
const;
78 void setResizeMode(ResizeMode);
81 void resizeEvent(QResizeEvent *e)
override;
84 void setSource(
const QUrl &url);
88 void resizeModeChanged(QuickViewSharedEngine::ResizeMode resizeMode);
89 void sourceChanged(
const QUrl &source);
92 const std::unique_ptr<QuickViewSharedEnginePrivate> d;
94 Q_PRIVATE_SLOT(d,
void executionFinished())
95 Q_PRIVATE_SLOT(d,
void syncWidth())
96 Q_PRIVATE_SLOT(d,
void syncHeight())
Q_SCRIPTABLE CaptureState status()
The EdgeEventForwarder class This class forwards edge events to be replayed within the given margin T...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:23 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.