aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitem.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-09-09 15:00:14 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-09-11 07:55:35 +0200
commit18819494ccc1afe5347babaea82fb03486987dc9 (patch)
tree77794e89ff46748c048daa6155f95a607a3994ff /src/quick/items/qquickitem.cpp
parent6421584b62a8ca6670e403a27ab446816b6b2b87 (diff)
Doc: Fix qdoc warnings
* Use correct qdoc markup commands. * Add replacement snippet to make up for snippet file removal in a7a88483c61150f7b7d78dc97f4a521ef9f04899. * Correct file name capitalization in snippet. Change-Id: I1fe30834292f8536c97b2bc4df0a654649431675 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/items/qquickitem.cpp')
-rw-r--r--src/quick/items/qquickitem.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index e02ae15373..8bf5e4f4bf 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -1981,7 +1981,15 @@ void QQuickItemPrivate::updateSubFocusItem(QQuickItem *scope, bool focus)
It is possible to apply an effect on a layer at runtime using
layer.effect:
- \snippet qml/layerwitheffect.qml 1
+ \qml
+ Item {
+ id: layerRoot
+ layer.enabled = true
+ layer.effect: ShaderEffect {
+ fragmentShader: "effect.frag.qsb"
+ }
+ }
+ \endqml
In this example, we implement the shader effect manually. The \l
{Qt Graphical Effects} module contains a suite of ready-made