X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fwidgets%2FDevToolsWebEngineView.cpp;fp=src%2Fwidgets%2FDevToolsWebEngineView.cpp;h=a4095849817d3e2f8c8e6f0d48e4b74c868c2872;hp=0000000000000000000000000000000000000000;hb=e5ec85accb02116b08c33b574805c132475d90bc;hpb=bc134c3e83b97b4b82733feaa39e0bd99bb0fcc3 diff --git a/src/widgets/DevToolsWebEngineView.cpp b/src/widgets/DevToolsWebEngineView.cpp new file mode 100644 index 0000000..a409584 --- /dev/null +++ b/src/widgets/DevToolsWebEngineView.cpp @@ -0,0 +1,37 @@ +/* + * Copyright 2022-2023 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Privacy Browser PC is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Privacy Browser PC. If not, see . + */ + +// Application headers. +#include "DevToolsWebEngineView.h" + +// Qt toolkit headers. +#include + +// Construct the class. +DevToolsWebEngineView::DevToolsWebEngineView(QWidget *parentWidgetPointer) : QWebEngineView(parentWidgetPointer) +{ + // Create an off-the-record profile (the default when no profile name is specified). + QWebEngineProfile *webEngineProfilePointer = new QWebEngineProfile(QLatin1String("")); + + // Create a WebEngine page. + QWebEnginePage *webEnginePagePointer = new QWebEnginePage(webEngineProfilePointer); + + // Set the WebEngine page. + setPage(webEnginePagePointer); +}