X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.h;fp=src%2Fwidgets%2FTabWidget.h;h=6130fc3ee75fc27b987c26c1e726a4933e159b7d;hp=246daa41cf4860c9c080426309a815e7de3c69f6;hb=06a69a2d38bf73c0c5219f94c345b19142bb1646;hpb=15219459baed09d03d17a12c72302595c135fd53 diff --git a/src/widgets/TabWidget.h b/src/widgets/TabWidget.h index 246daa4..6130fc3 100644 --- a/src/widgets/TabWidget.h +++ b/src/widgets/TabWidget.h @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Soren Stoutner . + * Copyright 2022 Soren Stoutner . * * This file is part of Privacy Browser PC . * @@ -22,6 +22,7 @@ // Application headers. #include "PrivacyWebEngineView.h" +#include "helpers/UserAgentHelper.h" // KDE Framework headers. #include @@ -118,9 +119,9 @@ private Q_SLOTS: void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest) const; void pageLinkHovered(const QString &linkUrl) const; void printWebpage(QPrinter *printerPointer) const; - void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer) const; - void showSaveFilePickerDialog(QUrl &downloadUrl, QString &suggestedFileName); + void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer); void updateUiWithTabSettings(); + void useNativeDownloader(QUrl &downloadUrl, QString &suggestedFileName); private: // The private variables. @@ -134,6 +135,7 @@ private: QIcon defaultTabIcon = QIcon::fromTheme(QStringLiteral("globe")); QString searchEngineUrl; QTabWidget *tabWidgetPointer; + UserAgentHelper *userAgentHelperPointer; bool wipingCurrentFindTextSelection = false; // The private functions.