aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickrepeater.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2019-01-23 12:44:17 +0100
committerTopi Reinio <topi.reinio@qt.io>2019-01-23 12:44:17 +0100
commitfefbb353dd9047cb6c88ca518a2335269111a049 (patch)
tree043575d226f4e1d4ebbfe77f33ec382ea5dc1876 /src/quick/items/qquickrepeater.cpp
parent2ae68e243e3177220edd8b305116db92046c7c2c (diff)
Doc: Fix incorrect snippet in Repeater QML type documentation
Task-number: QTBUG-73199 Change-Id: I83f0754577b382b26f484bfdc4f6b3a2a921b5f1 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/quick/items/qquickrepeater.cpp')
-rw-r--r--src/quick/items/qquickrepeater.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/quick/items/qquickrepeater.cpp b/src/quick/items/qquickrepeater.cpp
index 805b6fe190..0c00fecead 100644
--- a/src/quick/items/qquickrepeater.cpp
+++ b/src/quick/items/qquickrepeater.cpp
@@ -121,16 +121,17 @@ QQuickRepeaterPrivate::~QQuickRepeaterPrivate()
Also, note that Repeater is \l {Item}-based, and can only repeat \l {Item}-derived objects.
For example, it cannot be used to repeat QtObjects:
- \code
- //bad code
+
+ \qml
+ // bad code:
Item {
- Can't repeat QtObject as it doesn't derive from Item.
+ // Can't repeat QtObject as it doesn't derive from Item.
Repeater {
model: 10
QtObject {}
}
}
- \endcode
+ \endqml
*/
/*!