summaryrefslogtreecommitdiffstats
path: root/examples/network/http/httpwindow.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-05-23 17:42:49 -0700
committerJake Petroules <jake.petroules@qt.io>2016-05-26 01:55:49 +0000
commit2ceacd537279e735025a2c74a7a1b73ea8c4fc06 (patch)
tree32f6ff07aeedbd14f660eeae4943b9ec4b40a286 /examples/network/http/httpwindow.cpp
parent4605ca20130170757c2cbe6f69eb7fcfbc9f9101 (diff)
Fix httpwindow example.
DownloadLocation is not writable on some platforms (iOS) in Qt 5.6, and qt-project.org HTTPS does not work anymore. Change-Id: I78bfbee1472cd39cd05ec7f846d1195d4fbb1b2c Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'examples/network/http/httpwindow.cpp')
-rw-r--r--examples/network/http/httpwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp
index 301431fd5e..41563dc235 100644
--- a/examples/network/http/httpwindow.cpp
+++ b/examples/network/http/httpwindow.cpp
@@ -46,9 +46,9 @@
#include "ui_authenticationdialog.h"
#ifndef QT_NO_SSL
-static const char defaultUrl[] = "https://qt-project.org/";
+static const char defaultUrl[] = "https://www.qt.io/";
#else
-static const char defaultUrl[] = "http://qt-project.org/";
+static const char defaultUrl[] = "http://www.qt.io/";
#endif
static const char defaultFileName[] = "index.html";
@@ -96,7 +96,7 @@ HttpWindow::HttpWindow(QWidget *parent)
connect(urlLineEdit, &QLineEdit::textChanged,
this, &HttpWindow::enableDownloadButton);
formLayout->addRow(tr("&URL:"), urlLineEdit);
- QString downloadDirectory = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
+ QString downloadDirectory = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
if (downloadDirectory.isEmpty() || !QFileInfo(downloadDirectory).isDir())
downloadDirectory = QDir::currentPath();
downloadDirectoryLineEdit->setText(QDir::toNativeSeparators(downloadDirectory));