diff --git a/.gitignore b/.gitignore index 71822e89e..fd694e9e4 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,12 @@ __pycache__ /prof /venv TODO -/scripts/testbrowser_cpp/Makefile -/scripts/testbrowser_cpp/main.o -/scripts/testbrowser_cpp/testbrowser +/scripts/testbrowser_cpp/webkit/Makefile +/scripts/testbrowser_cpp/webkit/main.o +/scripts/testbrowser_cpp/webkit/testbrowser +/scripts/testbrowser_cpp/webkit/.qmake.stash +/scripts/testbrowser_cpp/webengine/Makefile +/scripts/testbrowser_cpp/webengine/main.o +/scripts/testbrowser_cpp/webengine/testbrowser +/scripts/testbrowser_cpp/webengine/.qmake.stash /scripts/dev/pylint_checkers/qute_pylint.egg-info diff --git a/scripts/testbrowser_cpp/webengine/main.cpp b/scripts/testbrowser_cpp/webengine/main.cpp new file mode 100644 index 000000000..311432e92 --- /dev/null +++ b/scripts/testbrowser_cpp/webengine/main.cpp @@ -0,0 +1,13 @@ +#include +#include +#include + + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + QWebEngineView view; + view.load(QUrl(argv[1])); + view.show(); + return app.exec(); +} diff --git a/scripts/testbrowser_cpp/webengine/testbrowser.pro b/scripts/testbrowser_cpp/webengine/testbrowser.pro new file mode 100644 index 000000000..12a1cf7f6 --- /dev/null +++ b/scripts/testbrowser_cpp/webengine/testbrowser.pro @@ -0,0 +1,6 @@ +QT += core widgets webenginewidgets + +TARGET = testbrowser +TEMPLATE = app + +SOURCES += main.cpp diff --git a/scripts/testbrowser_cpp/main.cpp b/scripts/testbrowser_cpp/webkit/main.cpp similarity index 100% rename from scripts/testbrowser_cpp/main.cpp rename to scripts/testbrowser_cpp/webkit/main.cpp diff --git a/scripts/testbrowser_cpp/testbrowser.pro b/scripts/testbrowser_cpp/webkit/testbrowser.pro similarity index 100% rename from scripts/testbrowser_cpp/testbrowser.pro rename to scripts/testbrowser_cpp/webkit/testbrowser.pro