From 2573021475b799f58575baf24088ca337bb982b9 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Thu, 3 Apr 2014 11:10:49 +0200 Subject: Doc: Fix some code snippet warnings Seems like \qml \endqml is not able to parse some snippets, so using \code \endcode instead to fix warnings like: Unable to parse QML snippet: "Expected token `{'" at line 1, column 13 Change-Id: Iecf033ff5610405d946390e69c3aa7ec54a21998 Reviewed-by: Jerome Pasion Reviewed-by: Sze Howe Koh --- src/qml/types/qqmlbind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/types/qqmlbind.cpp') diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp index f6da64f913..88080b1895 100644 --- a/src/qml/types/qqmlbind.cpp +++ b/src/qml/types/qqmlbind.cpp @@ -113,12 +113,12 @@ public: of the binding is undefined when the mouse isn't pressed. We can use the Binding type to rewrite the above code and avoid the warning. - \qml + \code Binding on value { when: mouse.pressed value: mouse.mouseX } - \endqml + \endcode The Binding type will also restore any previously set direct bindings on the property. In that sense, it functions much like a simplified State. -- cgit v1.2.3