summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@digia.com>2014-10-17 15:55:53 +0200
committerLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2015-01-05 16:59:36 +0100
commit060cc3c47062a35e8127413ece57573d1aca067f (patch)
treef470e22b330ae41026949b3491a1f5e241564139 /examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
parent64dcf54e06556f951dff277feb9a9b6aa7767cf8 (diff)
downloadqtxmlpatterns-060cc3c47062a35e8127413ece57573d1aca067f.tar.gz
Doc: fix issues to display examples in Qt Creatorv5.4.15.4.1
- Add \brief commands to example docs to show descriptions - Add an examples page with the \group command - Link to the examples page from the module index page - Edit the .qdocconf file - Edit the .gitignore file to allow pushing changes to examples - Add a generic thumbnail image for C++ Code Analyzer example Change-Id: I1a313ae26664ce9fc50ef8962f0facd57dea546b Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc')
-rw-r--r--examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc29
1 files changed, 16 insertions, 13 deletions
diff --git a/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc b/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
index bc5011c..a11a972 100644
--- a/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
+++ b/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -26,10 +26,13 @@
****************************************************************************/
/*!
- \example xmlpatterns/xquery
+ \example xquery
\title C++ Source Code Analyzer Example
\ingroup xmlpattern_examples
+ \brief Using XQuery and the \c xmlpatterns command line utility to
+ query C++ source code.
+
This example uses XQuery and the \c xmlpatterns command line utility to
query C++ source code.
@@ -68,7 +71,7 @@
Consider the declarations in this hypothetical C++ application:
- \snippet xmlpatterns/xquery/globalVariables/globals.cpp 0
+ \snippet xquery/globalVariables/globals.cpp 0
\section3 The XML description of the C++ application
@@ -76,7 +79,7 @@
\l{http://public.kitware.com/GCC_XML/HTML/Index.html} {GCC-XML}
produces this XML description:
- \quotefromfile xmlpatterns/xquery/globalVariables/globals.gccxml
+ \quotefromfile xquery/globalVariables/globals.gccxml
\printuntil
\section3 The XQuery for finding global variables
@@ -85,7 +88,7 @@
description. Here is our XQuery source. We walk through it in
\l{XQuery Code Walk-Through}.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\printuntil
\section3 Running the XQuery
@@ -93,7 +96,7 @@
To run the XQuery using the \c xmlpatterns command line utility,
enter the following command:
- \code
+ \badcode
xmlpatterns reportGlobals.xq -param fileToOpen=globals.gccxml -output globals.html
\endcode
@@ -128,7 +131,7 @@
\c{examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq}
It begins with two variable declarations that begin the XQuery:
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare variable
\printto (:
@@ -149,7 +152,7 @@
instructions for displaying the text, and then the \c{<body>}
element.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto <html xmlns
\printuntil
@@ -158,7 +161,7 @@
the two \c{return} clauses separated by the \e {comma operator}
about halfway down:
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:report()
\printuntil };
@@ -172,7 +175,7 @@
Here is the html generated for the \c{<body>} element. Compare
it with the XQuery code above:
- \quotefromfile xmlpatterns/xquery/globalVariables/globals.html
+ \quotefromfile xquery/globalVariables/globals.html
\skipto <body>
\printuntil </body>
@@ -181,21 +184,21 @@
returns true if the variable has a complex type. The variable can
be mutable or const.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:isComplexType
\printuntil };
\c{isPrimitive()} returns true if the variable has a primitive
type. The variable must be mutable.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:isPrimitive
\printuntil };
\c{location()} returns a text constructed from the variable's file
and line number attributes.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:location
\printuntil };