summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-15 03:03:24 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-15 03:03:24 (GMT)
commit21aeae2a2258ab8e5083a0607c3b98579bf6fc58 (patch)
treee4ae03f88c77e36a1cede9f68fef010cd4575fdd /doc/src/snippets
parent2d23e45c94b6115db2b1efadfe77841f481545ca (diff)
downloadQt-21aeae2a2258ab8e5083a0607c3b98579bf6fc58.zip
Qt-21aeae2a2258ab8e5083a0607c3b98579bf6fc58.tar.gz
Qt-21aeae2a2258ab8e5083a0607c3b98579bf6fc58.tar.bz2
Expand documentation for QNAM::setConfiguration() and friends.
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp b/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
index 643d0dd..5db6676 100644
--- a/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
+++ b/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
@@ -60,3 +60,12 @@ connect(reply, SIGNAL(error(QNetworkReply::NetworkError)),
connect(reply, SIGNAL(sslErrors(QList<QSslError>)),
this, SLOT(slotSslErrors(QList<QSslError>)));
//! [1]
+
+//! [2]
+QNetworkConfigurationManager manager;
+networkAccessManager->setConfiguration(manager.defaultConfiguration());
+//! [2]
+
+//! [3]
+networkAccessManager->setConfiguration(QNetworkConfiguration());
+//! [3]