aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2019-08-01 16:36:10 +0200
committerNico Vertriest <nico.vertriest@qt.io>2019-08-19 15:40:07 +0200
commitf9eedc501d02a3d856c0502c06daef273a2935ca (patch)
treec26355f8f3651335d2ae1dd5a135f50aa5590aed /src
parentffda7180f3c11c35699ba8aa1a16efc6ee962e02 (diff)
Doc: Correct wrong code in qml snippet
Replace QT_TRANSLATE_NOOP with equiv. qStr statement Task-number: QTBUG-56875 Change-Id: I80581ecf05a25e0c69da434d3e548261eac5811e Reviewed-by: Frederik Schwarzer <schwarzer@kde.org> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/doc/src/concepts/positioning/righttoleft.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc
index 7c8cd735b3..1f3602cde1 100644
--- a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc
+++ b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc
@@ -148,7 +148,7 @@ To define the layout direction for a particular locale, declare the dedicated st
You can do this by first introducing this line
\code
-QT_TRANSLATE_NOOP("QGuiApplication", "QT_LAYOUT_DIRECTION");
+qsTr("QT_LAYOUT_DIRECTION","QGuiApplication");
\endcode
somewhere in your QML source code and calling \c lupdate to generate the translation source file.