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>
This commit is contained in:
parent
72e5b36e2e
commit
0edda211f9
@ -57,14 +57,6 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, 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;
|
HttpWindow httpWin;
|
||||||
const QRect availableSize = httpWin.screen()->availableGeometry();
|
const QRect availableSize = httpWin.screen()->availableGeometry();
|
||||||
httpWin.resize(availableSize.width() / 5, availableSize.height() / 5);
|
httpWin.resize(availableSize.width() / 5, availableSize.height() / 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user