summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2021-07-29 11:59:58 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2021-07-30 14:46:55 +0300
commit0edda211f9a333b322ab5b6d0156271f4d460ece (patch)
tree169c086656520da26ec5a887f3492dc35fb0f6cc /examples/network
parent72e5b36e2e4c79dc7995f0203968503266b4f2f5 (diff)
Remove mention of permission api in http example
Pick-to: 6.2 Change-Id: I8b22633e1ad5372f92f87315b7184a4b499a0a0b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/http/main.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/network/http/main.cpp b/examples/network/http/main.cpp
index 43d510e16b..c306149c29 100644
--- a/examples/network/http/main.cpp
+++ b/examples/network/http/main.cpp
@@ -57,14 +57,6 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
-
- auto permission = QApplicationPermission::WriteStorage;
- if (QCoreApplication::requestPermission(permission).result()
- != QApplicationPermission::Authorized) {
- qWarning() << "Couldn't get 'WriteStorage' permission!";
- return -1;
- }
-
HttpWindow httpWin;
const QRect availableSize = httpWin.screen()->availableGeometry();
httpWin.resize(availableSize.width() / 5, availableSize.height() / 5);