2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
2011-04-27 17:16:41 +00:00
|
|
|
#include <QDir>
|
2019-09-09 14:11:48 +00:00
|
|
|
#include <QScreen>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "httpwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
HttpWindow httpWin;
|
2019-09-09 14:11:48 +00:00
|
|
|
const QRect availableSize = httpWin.screen()->availableGeometry();
|
2015-09-17 13:56:30 +00:00
|
|
|
httpWin.resize(availableSize.width() / 5, availableSize.height() / 5);
|
|
|
|
httpWin.move((availableSize.width() - httpWin.width()) / 2, (availableSize.height() - httpWin.height()) / 2);
|
2020-02-24 07:50:51 +00:00
|
|
|
#ifdef Q_OS_ANDROID
|
|
|
|
httpWin.showMaximized();
|
|
|
|
#else
|
2011-04-27 10:05:43 +00:00
|
|
|
httpWin.show();
|
2020-02-24 07:50:51 +00:00
|
|
|
#endif
|
|
|
|
|
2011-04-27 17:16:41 +00:00
|
|
|
return app.exec();
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|