22 Q_PROPERTY(QQuickItem* sourceItem READ sourceItem WRITE setSourceItem NOTIFY sourceItemChanged)
23 Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged)
24 Q_PROPERTY(
float radius READ radius WRITE setRadius NOTIFY radiusChanged)
25 Q_PROPERTY(
bool fixed READ fixed WRITE setFixed NOTIFY fixedChanged)
26 Q_PROPERTY(
bool hideSource READ hideSource WRITE setHideSource NOTIFY hideSourceChanged)
27#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
28 Q_PROPERTY(QPainter::CompositionMode compositionMode READ compositionMode WRITE setCompositionMode NOTIFY compositionModeChanged RESET resetCompositionMode)
31#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
32 QML_NAMED_ELEMENT(ItemViewport)
39 QQuickItem* sourceItem()
const;
40 void setSourceItem(QQuickItem* sourceItem);
42 QRectF sourceRect()
const;
43 void setSourceRect(
const QRectF &sourceRect);
46 void setRadius(
float radius);
49 void setFixed(
bool newFixed);
51 bool hideSource()
const;
52 void setHideSource(
bool newHideSource);
54 bool isTextureProvider()
const override {
return true; }
55 QSGTextureProvider *textureProvider()
const override;
57#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
58 QPainter::CompositionMode compositionMode()
const;
59 void setCompositionMode(QPainter::CompositionMode newCompositionMode);
60 void resetCompositionMode();
64 void sourceItemChanged();
65 void sourceRectChanged();
68 void hideSourceChanged();
69#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
70 void compositionModeChanged();
74 void invalidateSceneGraph();
77 void itemChange(ItemChange,
const ItemChangeData &)
override;
78#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
79 void geometryChanged(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
81 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
83 QSGNode *updatePaintNode(QSGNode *old, UpdatePaintNodeData *)
override;
84 void componentComplete()
override;
85 void releaseResources()
override;