diff options
author | Tobias Koenig <tokoe@kde.org> | 2009-05-21 10:25:00 (GMT) |
---|---|---|
committer | Tobias Koenig <tokoe@kde.org> | 2009-05-21 10:25:00 (GMT) |
commit | be0285b193d23fcf28ad84a73895ad15ece18e4c (patch) | |
tree | 9d1378d55d4c612d0b74f89642d7969f93dd18ce /src/xmlpatterns/api | |
parent | 676d97d56a96c46cd9b9a2d6ba5d5f535f974d42 (diff) | |
download | Qt-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')
-rw-r--r-- | src/xmlpatterns/api/qxmlschema.cpp | 16 |
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) { |