// 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)
{
webEngineViewPointer->reload();
}
+void MainView::applyOnTheFlyZoomFactor(const double &zoomFactor) const
+{
+ // Set the zoom factor.
+ webEngineViewPointer->setZoomFactor(zoomFactor);
+}
+
void MainView::goHome() const
{
// Load the homepage.