summaryrefslogtreecommitdiff
path: root/doc/src/examples/schema.qdoc
diff options
context:
space:
mode:
authorArnab Datta <arnab.datta@nokia.com>2012-03-30 16:33:48 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-13 13:08:08 +0200
commit08a3b2ea08480ef2f5b4ebc9d9a1442d45e1fa4c (patch)
treed6590c2e805d5d2600059ec3c8136b06e0f14880 /doc/src/examples/schema.qdoc
parent0d6c28c5eb7046bbc011b060fdcab1f622ed9f9a (diff)
downloadqtxmlpatterns-08a3b2ea08480ef2f5b4ebc9d9a1442d45e1fa4c.tar.gz
Fixed all qdoc errors for this module (except those related to linking)
Change-Id: I36d07a02ec8dea6bc2d538f32b28b987635c32c1 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'doc/src/examples/schema.qdoc')
-rw-r--r--doc/src/examples/schema.qdoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/src/examples/schema.qdoc b/doc/src/examples/schema.qdoc
index 9d56d6b..4086dd5 100644
--- a/doc/src/examples/schema.qdoc
+++ b/doc/src/examples/schema.qdoc
@@ -68,7 +68,7 @@
QApplication. Then it creates an instance of the mainwindow class, shows it,
and starts the Qt event loop:
- \snippet examples/xmlpatterns/schema/main.cpp 0
+ \snippet xmlpatterns/schema/main.cpp 0
\section2 The UI Class: MainWindow
@@ -76,7 +76,7 @@
QMainWindow and the class generated by \l{Qt Designer Manual} {Qt
Designer}:
- \snippet examples/xmlpatterns/schema/mainwindow.h 0
+ \snippet xmlpatterns/schema/mainwindow.h 0
The constructor fills the schema and instance \l{QComboBox} selections with the predefined
schemas and instances and connects their \l{QComboBox::currentIndexChanged()} {currentIndexChanged()}
@@ -87,20 +87,20 @@
The call to \c{schemaSelected(0)} and \c{instanceSelected(0)} will trigger the validation
of the initial Contact Schema example.
- \snippet examples/xmlpatterns/schema/mainwindow.cpp 0
+ \snippet xmlpatterns/schema/mainwindow.cpp 0
In the \c{schemaSelected()} slot the content of the instance \l{QComboBox} {selection}
is adapted to the selected schema and the corresponding schema is loaded from the
\l{The Qt Resource System} {resource file} and displayed in the schema \l{QTextBrowser} {viewer}.
At the end of the method a revalidation is triggered.
- \snippet examples/xmlpatterns/schema/mainwindow.cpp 1
+ \snippet xmlpatterns/schema/mainwindow.cpp 1
In the \c{instanceSelected()} slot the selected instance is loaded from the
\l{The Qt Resource System} {resource file} and loaded into the instance \l{QTextEdit} {editor}
an the revalidation is triggered again.
- \snippet examples/xmlpatterns/schema/mainwindow.cpp 2
+ \snippet xmlpatterns/schema/mainwindow.cpp 2
The \c{validate()} slot does the actual work in this example.
At first it stores the content of the schema \l{QTextBrowser} {viewer} and the
@@ -109,7 +109,7 @@
\l{QAbstractMessageHandler} {QAbstractMessageHandler} and is a convenience
class to store error messages from the XmlPatterns system.
- \snippet examples/xmlpatterns/schema/mainwindow.cpp 4
+ \snippet xmlpatterns/schema/mainwindow.cpp 4
After the \l{QXmlSchema} {QXmlSchema} is instanciated and the message handler set
on it, the \l{QXmlSchema::load()} {load()} method is called with the schema data as argument.
@@ -125,5 +125,5 @@
The rest of the code does only some fancy coloring and eyecandy.
- \snippet examples/xmlpatterns/schema/mainwindow.cpp 3
+ \snippet xmlpatterns/schema/mainwindow.cpp 3
*/