X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2FMainView.cpp;h=04cc1ee87d86082db817e3023d110000904e52e7;hp=99c9355053652253527d727961ba751041dbb898;hb=ed23757527d2d80102f87f6446b73d890a169fb4;hpb=2c380f75b275780859774f3947db39cdf6f4f021 diff --git a/src/MainView.cpp b/src/MainView.cpp index 99c9355..04cc1ee 100644 --- a/src/MainView.cpp +++ b/src/MainView.cpp @@ -156,12 +156,13 @@ void MainView::applyDomainSettings(bool reloadWebsite) const // Apply the user agent. webEngineProfilePointer->setHttpUserAgent(UserAgentHelper::getUserAgent(Settings::userAgent())); - // Emit the user agent updated signal, which causes the on-the-fly menu to be updated. - emit userAgentUpdated(Settings::userAgent()); - // Set the zoom factor. webEngineViewPointer->setZoomFactor(Settings::zoomFactor()); + // Emit the on-the-fly menu update signals. + emit userAgentUpdated(Settings::userAgent()); + emit zoomFactorUpdated(Settings::zoomFactor()); + // Reload the website if requested. if (reloadWebsite) { @@ -196,6 +197,12 @@ void MainView::applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const webEngineViewPointer->reload(); } +void MainView::applyOnTheFlyZoomFactor(const double &zoomFactor) const +{ + // Set the zoom factor. + webEngineViewPointer->setZoomFactor(zoomFactor); +} + void MainView::goHome() const { // Load the homepage.