diff options
author | juhvu <qt-info@nokia.com> | 2011-06-03 11:26:59 +1000 |
---|---|---|
committer | juhvu <qt-info@nokia.com> | 2011-06-03 11:26:59 +1000 |
commit | 7f812b12ac0002a543d2ab8edcbad74b4694bd5b (patch) | |
tree | b38fe2b8a29550f76d04532f968c1be3abe8fe2b /examples/declarative/mapviewer/qmlmapviewer.cpp | |
parent | 323b91f4622ee53db7a2888addce471362a8cb87 (diff) | |
download | qtlocation-7f812b12ac0002a543d2ab8edcbad74b4694bd5b.tar.gz |
Imported the Qt5 location QML work from mobility repo to Qt5 repo.
Diffstat (limited to 'examples/declarative/mapviewer/qmlmapviewer.cpp')
-rw-r--r-- | examples/declarative/mapviewer/qmlmapviewer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/declarative/mapviewer/qmlmapviewer.cpp b/examples/declarative/mapviewer/qmlmapviewer.cpp index f68cf1a0..c4466df8 100644 --- a/examples/declarative/mapviewer/qmlmapviewer.cpp +++ b/examples/declarative/mapviewer/qmlmapviewer.cpp @@ -41,6 +41,7 @@ #include <QtGui/QApplication> #include <QtDeclarative/QDeclarativeView> #include <QtDeclarative/QDeclarativeEngine> +#include <QNetworkProxy> int main(int argc, char *argv[]) { @@ -49,6 +50,14 @@ int main(int argc, char *argv[]) QDeclarativeView view; view.setSource(QUrl(mainQmlApp)); view.setResizeMode(QDeclarativeView::SizeRootObjectToView); + + // Temporary development-time proxy setting + // TODO improve later. + QNetworkProxy proxy; + proxy.setType(QNetworkProxy::HttpProxy); + proxy.setHostName("nokes.nokia.com"); + proxy.setPort(8080); + QNetworkProxy::setApplicationProxy(proxy); // Qt.quit() called in embedded .qml by default only emits // quit() signal, so do this (optionally use Qt.exit()). QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit())); |