Remove showMaximized() workaround for Android in examples
Android implements QPlatformIntegration::ShowIsMaximized nowadays. Change-Id: I451a9a8edc8ec407946d44f3e6921c78ac1d11aa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
2ec7a6322f
commit
465bde54a0
@ -14,11 +14,7 @@ int main(int argc, char *argv[])
|
||||
const QRect availableSize = httpWin.screen()->availableGeometry();
|
||||
httpWin.resize(availableSize.width() / 5, availableSize.height() / 5);
|
||||
httpWin.move((availableSize.width() - httpWin.width()) / 2, (availableSize.height() - httpWin.height()) / 2);
|
||||
#ifdef Q_OS_ANDROID
|
||||
httpWin.showMaximized();
|
||||
#else
|
||||
httpWin.show();
|
||||
#endif
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
@ -9,11 +9,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
Dialog dialog;
|
||||
#ifdef Q_OS_ANDROID
|
||||
dialog.showMaximized();
|
||||
#else
|
||||
dialog.show();
|
||||
#endif
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
@ -9,11 +9,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
Dialog dialog;
|
||||
#ifdef Q_OS_ANDROID
|
||||
dialog.showMaximized();
|
||||
#else
|
||||
dialog.show();
|
||||
#endif
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user