summaryrefslogtreecommitdiff
path: root/examples/webenginewidgets/minimal/main.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-03-17 08:45:13 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-22 12:48:35 +0000
commit37b04eeb90063b9845d4b6154fa3bc7e36ebdf0c (patch)
treefe262622904dc25c9fb3ca3238997f1a6d00f250 /examples/webenginewidgets/minimal/main.cpp
parentb28b1cb6eca4752afd11d94af7d47d8afe91c424 (diff)
downloadqtwebengine-37b04eeb90063b9845d4b6154fa3bc7e36ebdf0c.tar.gz
Move widgets minimal example to manual tests
Task-number: QTBUG-108751 Change-Id: I6e237b04d1f6a19f64516cd45aabe4d28099abd5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 34ebe8be93ab10766d034e5a3943a12c8de3a58e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/webenginewidgets/minimal/main.cpp')
-rw-r--r--examples/webenginewidgets/minimal/main.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/webenginewidgets/minimal/main.cpp b/examples/webenginewidgets/minimal/main.cpp
deleted file mode 100644
index 86c04e721..000000000
--- a/examples/webenginewidgets/minimal/main.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QApplication>
-#include <QWebEngineView>
-
-QUrl commandLineUrlArgument()
-{
- const QStringList args = QCoreApplication::arguments();
- for (const QString &arg : args.mid(1)) {
- if (!arg.startsWith(QLatin1Char('-')))
- return QUrl::fromUserInput(arg);
- }
- return QUrl(QStringLiteral("https://www.qt.io"));
-}
-
-int main(int argc, char *argv[])
-{
- QCoreApplication::setOrganizationName("QtExamples");
- QApplication app(argc, argv);
-
- QWebEngineView view;
- view.setUrl(commandLineUrlArgument());
- view.resize(1024, 750);
- view.show();
-
- return app.exec();
-}