aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--src/quick/items/qquickitem.cpp10
-rw-r--r--src/quick/items/qquicklistview.cpp4
-rw-r--r--src/quick/items/qquicktableview.cpp4
3 files changed, 13 insertions, 5 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
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp
index 1608fe5767..c2285c38ea 100644
--- a/src/quick/items/qquicklistview.cpp
+++ b/src/quick/items/qquicklistview.cpp
@@ -1971,7 +1971,7 @@ QQuickItemViewAttached *QQuickListViewPrivate::getAttachedObject(const QObject *
Delegates are usually parented to ListView's \l {Flickable::contentItem}{contentItem}, but
typically depending on whether it's visible in the view or not, the \l parent
can change, and sometimes be \c null. Because of that, binding to
- the parent's properties from within the delegate is \i not recommended. If you
+ the parent's properties from within the delegate is \e not recommended. If you
want the delegate to fill out the width of the ListView, consider
using one of the following approaches instead:
@@ -2119,7 +2119,7 @@ QQuickItemViewAttached *QQuickListViewPrivate::getAttachedObject(const QObject *
The following example shows a delegate that animates a spinning rectangle. When
it is pooled, the animation is temporarily paused:
- \snippet qml/listview/reusabledelegate.qml 0
+ \snippet qml/listview/ReusableDelegate.qml 0
\sa {QML Data Models}, GridView, PathView, {Qt Quick Examples - Views}
*/
diff --git a/src/quick/items/qquicktableview.cpp b/src/quick/items/qquicktableview.cpp
index 0a1bfb9b08..8f0c783c80 100644
--- a/src/quick/items/qquicktableview.cpp
+++ b/src/quick/items/qquicktableview.cpp
@@ -470,7 +470,7 @@
/*!
\qmlmethod Item QtQuick::TableView::itemAtCell(int column, int row)
- Convenience for calling \code itemAtCell(Qt.point(column, row)) \endcode
+ Convenience for calling \c{itemAtCell(Qt.point(column, row))}.
*/
/*!
@@ -489,7 +489,7 @@
/*!
\qmlmethod Point QtQuick::TableView::cellAtPos(real x, real y, bool includeSpacing)
- Convenience for calling \code cellAtPos(Qt.point(x, y), includeSpacing) \endcode
+ Convenience for calling \c{cellAtPos(Qt.point(x, y), includeSpacing)}.
*/
/*!