diff options
Diffstat (limited to 'doc/src/examples/schema.qdoc')
-rw-r--r-- | doc/src/examples/schema.qdoc | 14 |
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 */ |