summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-15 23:30:38 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-19 02:11:20 (GMT)
commit331ad8eb0aedb4baefcaf6f08a8e0ce440a32b06 (patch)
tree3ac789066de67ad2fdb89a06d0156ea15a58bb89 /doc/src/snippets/code
parent39818f933b958d504b9cc18487658209d1df22da (diff)
downloadQt-331ad8eb0aedb4baefcaf6f08a8e0ce440a32b06.zip
Qt-331ad8eb0aedb4baefcaf6f08a8e0ce440a32b06.tar.gz
Qt-331ad8eb0aedb4baefcaf6f08a8e0ce440a32b06.tar.bz2
Rename networkAccess property to networkAccessible.
Add unit test and update docs.
Diffstat (limited to 'doc/src/snippets/code')
-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 5db6676..1853650 100644
--- a/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
+++ b/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
@@ -69,3 +69,12 @@ networkAccessManager->setConfiguration(manager.defaultConfiguration());
//! [3]
networkAccessManager->setConfiguration(QNetworkConfiguration());
//! [3]
+
+//! [4]
+networkAccessManager->setNetworkAccessible(QNetworkAccessManager::NotAccessible);
+//! [4]
+
+//! [5]
+networkAccessManager->setNetworkAccessible(QNetworkAccessManager::Accessible);
+//! [5]
+