From 18819494ccc1afe5347babaea82fb03486987dc9 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Wed, 9 Sep 2020 15:00:14 +0200 Subject: 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 --- src/quick/items/qquickitem.cpp | 10 +++++++++- src/quick/items/qquicklistview.cpp | 4 ++-- src/quick/items/qquicktableview.cpp | 4 ++-- 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)}. */ /*! -- cgit v1.2.3