summaryrefslogtreecommitdiffstats
path: root/examples/webkit
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-08-05 16:07:23 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-31 16:33:34 (GMT)
commit2c20b446abfef16f3852aa90c791c9f51210869f (patch)
treef4a12534cdee3f3139a4abf24fc173d767b79596 /examples/webkit
parentaecf60446a0b7f02c3728b0f653ab04f1f45d11c (diff)
downloadQt-2c20b446abfef16f3852aa90c791c9f51210869f.zip
Qt-2c20b446abfef16f3852aa90c791c9f51210869f.tar.gz
Qt-2c20b446abfef16f3852aa90c791c9f51210869f.tar.bz2
Use system-wide proxy settings
Diffstat (limited to 'examples/webkit')
-rw-r--r--examples/webkit/fancybrowser/mainwindow.cpp2
-rw-r--r--examples/webkit/googlechat/main.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/webkit/fancybrowser/mainwindow.cpp b/examples/webkit/fancybrowser/mainwindow.cpp
index ecca36b..06b1e30 100644
--- a/examples/webkit/fancybrowser/mainwindow.cpp
+++ b/examples/webkit/fancybrowser/mainwindow.cpp
@@ -56,6 +56,8 @@ MainWindow::MainWindow()
file.close();
//! [1]
+ QNetworkProxyFactory::setUseSystemConfigurationEnabled(true);
+
//! [2]
view = new QWebView(this);
view->load(QUrl("http://www.google.com/ncr"));
diff --git a/examples/webkit/googlechat/main.cpp b/examples/webkit/googlechat/main.cpp
index 31937ee..09d94ef 100644
--- a/examples/webkit/googlechat/main.cpp
+++ b/examples/webkit/googlechat/main.cpp
@@ -40,11 +40,15 @@
****************************************************************************/
#include <QtGui>
+#include <QNetworkProxyFactory>
#include "googlechat.h"
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
+
+ QNetworkProxyFactory::setUseSystemConfigurationEnabled(true);
+
GoogleChat *chat = new GoogleChat;
chat->show();
return app.exec();