summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-03 06:47:55 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-03 06:47:55 (GMT)
commit79d35acae62bf28c37022b763b04e94f5e67bf6f (patch)
treeafdf4ec79438cee1058927f6e23d3184f8450618 /tools/qmlviewer
parented82a5dbe57fcc80b9d6244c73295f4b0b6e2835 (diff)
downloadQt-79d35acae62bf28c37022b763b04e94f5e67bf6f.zip
Qt-79d35acae62bf28c37022b763b04e94f5e67bf6f.tar.gz
Qt-79d35acae62bf28c37022b763b04e94f5e67bf6f.tar.bz2
Define and document deletion of QmlEngine QNetworkAccessManager
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index 248ff24..b9f3e67 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -249,7 +249,7 @@ private:
class ConfiguredNetworkAccessManager : public QNetworkAccessManager {
public:
- ConfiguredNetworkAccessManager() { }
+ ConfiguredNetworkAccessManager(QObject *parent) : QNetworkAccessManager(parent) { }
QNetworkReply *createRequest (Operation op, const QNetworkRequest &req, QIODevice * outgoingData)
{
@@ -334,7 +334,7 @@ QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags)
canvas->setAttribute(Qt::WA_OpaquePaintEvent);
canvas->setAttribute(Qt::WA_NoSystemBackground);
canvas->setContentResizable(!skin || !scaleSkin);
- canvas->engine()->setNetworkAccessManager(new ConfiguredNetworkAccessManager);
+ canvas->engine()->setNetworkAccessManager(new ConfiguredNetworkAccessManager(canvas->engine()));
canvas->setFocus();
QObject::connect(canvas, SIGNAL(sceneResized(QSize)), this, SLOT(sceneResized(QSize)));