19 Q_PROPERTY(QQuickItem* sourceItem READ sourceItem WRITE setSourceItem NOTIFY sourceItemChanged)
20 Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged)
21 Q_PROPERTY(
float radius READ radius WRITE setRadius NOTIFY radiusChanged)
22 Q_PROPERTY(
bool fixed READ fixed WRITE setFixed NOTIFY fixedChanged)
23 Q_PROPERTY(
bool hideSource READ hideSource WRITE setHideSource NOTIFY hideSourceChanged)
25#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
26 QML_NAMED_ELEMENT(ItemViewport)
33 QQuickItem* sourceItem()
const;
34 void setSourceItem(QQuickItem* sourceItem);
36 QRectF sourceRect()
const;
37 void setSourceRect(
const QRectF &sourceRect);
40 void setRadius(
float radius);
43 void setFixed(
bool newFixed);
45 bool hideSource()
const;
46 void setHideSource(
bool newHideSource);
48 bool isTextureProvider()
const override {
return true; }
49 QSGTextureProvider *textureProvider()
const override;
52 void sourceItemChanged();
53 void sourceRectChanged();
56 void hideSourceChanged();
59 void invalidateSceneGraph();
62 void itemChange(ItemChange,
const ItemChangeData &)
override;
63#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
64 void geometryChanged(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
66 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
68 QSGNode *updatePaintNode(QSGNode *old, UpdatePaintNodeData *)
override;
69 void componentComplete()
override;
70 void releaseResources()
override;