X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.h;h=4b247f71d83fa37b3c7d2c1dec670e9457a4e45a;hb=5f747e35e3555da6a0f89f0444163d578ab1db22;hp=246daa41cf4860c9c080426309a815e7de3c69f6;hpb=15219459baed09d03d17a12c72302595c135fd53;p=PrivacyBrowserPC.git diff --git a/src/widgets/TabWidget.h b/src/widgets/TabWidget.h index 246daa4..4b247f7 100644 --- a/src/widgets/TabWidget.h +++ b/src/widgets/TabWidget.h @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Soren Stoutner . + * Copyright 2022-2023 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.