diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-07 11:10:29 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:35:43 +0200 |
commit | 7eca53b51a2c7cae0b39fedb0b78205504bfd64b (patch) | |
tree | 61d62785fd0035af3b55ddc745b7d466125bda59 /src/network/access/qhttpmultipart.cpp | |
parent | 9fde9ab167e52948d337de7fb7b871f7a1d75f43 (diff) |
Doc: Modularize QtNetwork documentation.
This change moves the snippets and imagesto the modularized directories.
Change-Id: If14912692a7f72d7de345eaf88d9ec9752310fca
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/network/access/qhttpmultipart.cpp')
-rw-r--r-- | src/network/access/qhttpmultipart.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/access/qhttpmultipart.cpp b/src/network/access/qhttpmultipart.cpp index 27164d69ae..ca7e2f6be8 100644 --- a/src/network/access/qhttpmultipart.cpp +++ b/src/network/access/qhttpmultipart.cpp @@ -62,7 +62,7 @@ QT_BEGIN_NAMESPACE and a data block, which are separated by each other by two consecutive new lines. An example for one part would be: - \snippet doc/src/snippets/code/src_network_access_qhttppart.cpp 0 + \snippet code/src_network_access_qhttppart.cpp 0 For setting headers, use setHeader() and setRawHeader(), which behave exactly like QNetworkRequest::setHeader() and QNetworkRequest::setRawHeader(). @@ -77,12 +77,12 @@ QT_BEGIN_NAMESPACE To construct a QHttpPart with a small body, consider the following snippet (this produces the data shown in the example above): - \snippet doc/src/snippets/code/src_network_access_qhttppart.cpp 1 + \snippet code/src_network_access_qhttppart.cpp 1 To construct a QHttpPart reading from a device (e.g. a file), the following can be applied: - \snippet doc/src/snippets/code/src_network_access_qhttppart.cpp 2 + \snippet code/src_network_access_qhttppart.cpp 2 Be aware that QHttpPart does not take ownership of the device when set, so it is the developer's responsibility to destroy it when it is not needed anymore. @@ -226,7 +226,7 @@ void QHttpPart::setBodyDevice(QIODevice *device) As an example, consider the following code snippet, which constructs a multipart message containing a text part followed by an image part: - \snippet doc/src/snippets/code/src_network_access_qhttpmultipart.cpp 0 + \snippet code/src_network_access_qhttpmultipart.cpp 0 \sa QHttpPart, QNetworkAccessManager::post() */ |