summaryrefslogtreecommitdiffstats
path: root/examples/webkit
diff options
context:
space:
mode:
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();