#include <QAction>
#include <QWebEngineProfile>
+// Initialize the public static variables.
+QString BrowserView::webEngineDefaultUserAgent = QStringLiteral("");
+
BrowserView::BrowserView(QWidget *parent) : QWidget(parent)
{
// Instantiate the browser view UI.
webEngineHistoryPointer = webEnginePagePointer->history();
webEngineSettingsPointer = webEngineViewPointer->settings();
+ // Store a copy of the WebEngine default user agent.
+ webEngineDefaultUserAgent = webEngineProfilePointer->httpUserAgent();
+
// Update the URL line edit when the URL changes.
connect(webEngineViewPointer, SIGNAL(urlChanged(const QUrl)), this, SLOT(updateUrl(const QUrl)));