X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.h;h=578206ccc6ba31885c6b42a9da70f96fd5f44863;hb=dcb48bab299233e40e9518076c3e032ca072cb57;hp=4b247f71d83fa37b3c7d2c1dec670e9457a4e45a;hpb=5f747e35e3555da6a0f89f0444163d578ab1db22;p=PrivacyBrowserPC.git diff --git a/src/widgets/TabWidget.h b/src/widgets/TabWidget.h index 4b247f7..578206c 100644 --- a/src/widgets/TabWidget.h +++ b/src/widgets/TabWidget.h @@ -28,6 +28,7 @@ #include // Qt toolkit headers. +#include #include #include #include @@ -50,7 +51,8 @@ public: ~TabWidget(); // The public functions. - void applyOnTheFlyZoomFactor(const double &zoomFactor); + void applyOnTheFlyZoomFactor(const double &zoomFactor) const; + void applySpellCheckLanguages() const; PrivacyWebEngineView* loadBlankInitialWebsite(); void loadInitialWebsite(); void findPrevious(const QString &text) const; @@ -95,7 +97,6 @@ public Q_SLOTS: PrivacyWebEngineView* addTab(const bool removeUrlLineEditFocus=false, const bool backgroundTab=false); void applyApplicationSettings(); void applyDomainSettingsAndReload(); - void applyDomainSettingsWithoutReloading(const QString &hostname); void applyOnTheFlySearchEngine(QAction *searchEngineActionPointer); void applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const; void back() const; @@ -120,25 +121,23 @@ private Q_SLOTS: void pageLinkHovered(const QString &linkUrl) const; void printWebpage(QPrinter *printerPointer) const; void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer); + void updateUiFromWebEngineView(const PrivacyWebEngineView *privacyWebEngineViewPointer) const; void updateUiWithTabSettings(); void useNativeDownloader(QUrl &downloadUrl, QString &suggestedFileName); private: // The private variables. - double currentZoomFactor; // This can be removed once has been resolved. PrivacyWebEngineView *currentPrivacyWebEngineViewPointer; QWebEngineCookieStore *currentWebEngineCookieStorePointer; QWebEngineHistory *currentWebEngineHistoryPointer; QWebEnginePage *currentWebEnginePagePointer; QWebEngineProfile *currentWebEngineProfilePointer; QWebEngineSettings *currentWebEngineSettingsPointer; - QIcon defaultTabIcon = QIcon::fromTheme(QStringLiteral("globe")); + QIcon defaultFavoriteIcon = QIcon::fromTheme(QStringLiteral("globe")); + QMovie *loadingFavoriteIconMoviePointer; QString searchEngineUrl; - QTabWidget *tabWidgetPointer; + QTabWidget *qTabWidgetPointer; UserAgentHelper *userAgentHelperPointer; bool wipingCurrentFindTextSelection = false; - - // The private functions. - void applyDomainSettings(const QString &hostname, const bool reloadWebsite); }; #endif