summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/api/qxmlschema.cpp
diff options
context:
space:
mode:
authorTobias Koenig <tokoe@kde.org>2009-05-21 10:25:00 (GMT)
committerTobias Koenig <tokoe@kde.org>2009-05-21 10:25:00 (GMT)
commitbe0285b193d23fcf28ad84a73895ad15ece18e4c (patch)
tree9d1378d55d4c612d0b74f89642d7969f93dd18ce /src/xmlpatterns/api/qxmlschema.cpp
parent676d97d56a96c46cd9b9a2d6ba5d5f535f974d42 (diff)
downloadQt-be0285b193d23fcf28ad84a73895ad15ece18e4c.zip
Qt-be0285b193d23fcf28ad84a73895ad15ece18e4c.tar.gz
Qt-be0285b193d23fcf28ad84a73895ad15ece18e4c.tar.bz2
Added code snippets for QXmlSchema and referenced them from api docs
Diffstat (limited to 'src/xmlpatterns/api/qxmlschema.cpp')
-rw-r--r--src/xmlpatterns/api/qxmlschema.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qxmlschema.cpp b/src/xmlpatterns/api/qxmlschema.cpp
index 62b6a0e..ec370ca 100644
--- a/src/xmlpatterns/api/qxmlschema.cpp
+++ b/src/xmlpatterns/api/qxmlschema.cpp
@@ -93,6 +93,12 @@ QXmlSchema::~QXmlSchema()
If the schema \l {isValid()} {is invalid}, \c{false} is returned
and the behavior is undefined.
+
+ Example:
+
+ \snippet doc/src/snippets/qxmlschema/main.cpp 0
+
+ \sa isValid()
*/
bool QXmlSchema::load(const QUrl &source)
{
@@ -116,6 +122,10 @@ bool QXmlSchema::load(const QUrl &source)
If the schema \l {isValid()} {is invalid}, \c{false} is returned
and the behavior is undefined.
+ Example:
+
+ \snippet doc/src/snippets/qxmlschema/main.cpp 1
+
\sa isValid()
*/
bool QXmlSchema::load(QIODevice *source, const QUrl &documentUri)
@@ -137,6 +147,12 @@ bool QXmlSchema::load(QIODevice *source, const QUrl &documentUri)
If the schema \l {isValid()} {is invalid}, \c{false} is returned
and the behavior is undefined.
+
+ Example:
+
+ \snippet doc/src/snippets/qxmlschema/main.cpp 2
+
+ \sa isValid()
*/
bool QXmlSchema::load(const QByteArray &data, const QUrl &documentUri)
{