aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikita Krupenko <krnekit@gmail.com>2016-01-05 22:43:12 +0200
committerNikita Krupenko <krnekit@gmail.com>2016-01-05 20:54:57 +0000
commitef32c9b7ca59e130be1e6d2728232b1106ae0262 (patch)
tree55d04c1d89126892f30743d858dda3e835aa5915 /src
parent404d1e4a59fbade302dae2eb065e6304c881addc (diff)
Doc: fix code snippets in StackView
Change-Id: I73e1d49dcdde1ac0ca69ab3d1502489e20352cb3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/templates/qquickstackview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates/qquickstackview.cpp b/src/templates/qquickstackview.cpp
index e127d79f..d209b909 100644
--- a/src/templates/qquickstackview.cpp
+++ b/src/templates/qquickstackview.cpp
@@ -414,7 +414,7 @@ QQuickItem *QQuickStackView::find(const QJSValue &callback, LoadBehavior behavio
stackView.push([rect1, rect2, rect3])
// or with properties:
- stackView.push([rect1 {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
+ stackView.push([rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
\endcode
An \a operation can be optionally specified as the last argument. Supported
@@ -589,7 +589,7 @@ void QQuickStackView::pop(QQmlV4Function *args)
stackView.replace([rect1, rect2, rect3])
// or with properties:
- stackView.replace([rect1 {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
+ stackView.replace([rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
\endcode
An \a operation can be optionally specified as the last argument. Supported