]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.h
Move `applyDomainSettings()` to `PrivacyWebEngineView`. https://redmine.stoutner...
[PrivacyBrowserPC.git] / src / widgets / TabWidget.h
index 72a50a027347e822826d874fecf77f44c19d7f62..ccaefb9c5aa465237ab6f9a6e3a3446ecbd41c28 100644 (file)
@@ -50,7 +50,7 @@ public:
     ~TabWidget();
 
     // The public functions.
-    void applyOnTheFlyZoomFactor(const double &zoomFactor);
+    void applyOnTheFlyZoomFactor(const double &zoomFactor) const;
     void applySpellCheckLanguages() const;
     PrivacyWebEngineView* loadBlankInitialWebsite();
     void loadInitialWebsite();
@@ -96,7 +96,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;
@@ -121,12 +120,12 @@ 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 <https://redmine.stoutner.com/issues/799> has been resolved.
     PrivacyWebEngineView *currentPrivacyWebEngineViewPointer;
     QWebEngineCookieStore *currentWebEngineCookieStorePointer;
     QWebEngineHistory *currentWebEngineHistoryPointer;
@@ -135,11 +134,8 @@ private:
     QWebEngineSettings *currentWebEngineSettingsPointer;
     QIcon defaultTabIcon = QIcon::fromTheme(QStringLiteral("globe"));
     QString searchEngineUrl;
-    QTabWidget *tabWidgetPointer;
+    QTabWidget *qTabWidgetPointer;
     UserAgentHelper *userAgentHelperPointer;
     bool wipingCurrentFindTextSelection = false;
-
-    // The private functions.
-    void applyDomainSettings(const QString &hostname, const bool reloadWebsite);
 };
 #endif