3#include "PluginWebBrowser.h"
4#include "OperateWebBrowser.h"
5#include <QWebEngineProfile>
6#include <QLoggingCategory>
8static Q_LOGGING_CATEGORY(log,
"WebBrowser.Plugin")
12 qDebug(log) << Q_FUNC_INFO;
15CPluginWebBrowser::~CPluginWebBrowser()
17 qDebug(log) << Q_FUNC_INFO;
20const CPluginWebBrowser::TYPE CPluginWebBrowser::Type()
const
37 return tr(
"Web browser");
42 return tr(
"Web browser: Browsing the web(Experiment)");
47 return PluginWebBrowser_VERSION;
50const QIcon CPluginWebBrowser::Icon()
const
52 return QIcon::fromTheme(
"web-browser");
55COperate *CPluginWebBrowser::OnCreateOperate(
const QString &szId)
65#if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
66 szDetails +=
"- QWebEngine" + QString(
"\n");
67 szDetails +=
" - " + tr(
"version:") +
" " + qWebEngineVersion() +
"\n";
68#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
69 szDetails +=
" - " + tr(
"Process name:") +
" " + qWebEngineProcessName() +
"\n";
71 szDetails +=
" - " + tr(
"Chromium:") +
"\n";
72 szDetails +=
" - " + tr(
"version:") +
" " + qWebEngineChromiumVersion() +
"\n";
74#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0)
75 szDetails +=
" - " + tr(
"Security patch version:") +
" " + qWebEngineChromiumSecurityPatchVersion() +
"\n";
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Description() const override
Plugin description.
virtual const QString DisplayName() const override
The plugin display name.
virtual const QString Version() const override
Version.
virtual const QString Details() const override
Display more information in About dialog or log.
virtual const QString Id()
ID. Default: Type() + ":" + Protocol() + ":" + Name()