X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.h;h=57082e0ffa4fd5abc40449881f6116065eaaee74;hb=6a4af266d064e144822e46dc193f6d8c27ea6eb5;hp=ccaefb9c5aa465237ab6f9a6e3a3446ecbd41c28;hpb=8756d450d1d44dd8e840f7e3de7b1d72ca5b7d8e;p=PrivacyBrowserPC.git diff --git a/src/widgets/TabWidget.h b/src/widgets/TabWidget.h index ccaefb9..57082e0 100644 --- a/src/widgets/TabWidget.h +++ b/src/widgets/TabWidget.h @@ -28,6 +28,7 @@ #include // Qt toolkit headers. +#include #include #include #include @@ -44,7 +45,7 @@ class TabWidget : public QWidget public: // The primary contructor. - explicit TabWidget(QWidget *parent); + explicit TabWidget(QWidget *windowPointer); // The destructor. ~TabWidget(); @@ -110,6 +111,7 @@ public Q_SLOTS: void print() const; void printPreview() const; void refresh() const; + void reloadAndBypassCache() const; private Q_SLOTS: // The private slots. @@ -120,9 +122,10 @@ private Q_SLOTS: void pageLinkHovered(const QString &linkUrl) const; void printWebpage(QPrinter *printerPointer) const; void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer); + void stopLoadingFavoriteIconMovie() const; void updateUiFromWebEngineView(const PrivacyWebEngineView *privacyWebEngineViewPointer) const; void updateUiWithTabSettings(); - void useNativeDownloader(QUrl &downloadUrl, QString &suggestedFileName); + void useNativeKdeDownloader(QUrl &downloadUrl, QString &suggestedFileName); private: // The private variables. @@ -132,7 +135,9 @@ private: QWebEnginePage *currentWebEnginePagePointer; QWebEngineProfile *currentWebEngineProfilePointer; QWebEngineSettings *currentWebEngineSettingsPointer; - QIcon defaultTabIcon = QIcon::fromTheme(QStringLiteral("globe")); + QIcon defaultFavoriteIcon = QIcon::fromTheme(QStringLiteral("globe")); + bool isRunningKde = false; + QMovie *loadingFavoriteIconMoviePointer; QString searchEngineUrl; QTabWidget *qTabWidgetPointer; UserAgentHelper *userAgentHelperPointer;