X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.cpp;h=5b5a08c630cbae3985ef41b42711d6ba88459bef;hb=93a1583163ca580a2218ba81836a17c3a6586ccf;hp=a5ecefc3b96579b75f1e0b5404b7753f2c720322;hpb=22e1626444752f99e32b8c85b27c7b9e2054a96e;p=PrivacyBrowserPC.git diff --git a/src/widgets/TabWidget.cpp b/src/widgets/TabWidget.cpp index a5ecefc..5b5a08c 100644 --- a/src/widgets/TabWidget.cpp +++ b/src/widgets/TabWidget.cpp @@ -219,6 +219,14 @@ PrivacyWebEngineView* TabWidget::addTab(const bool removeUrlLineEditFocus, const emit hideProgressBar(); }); + // Update the zoom factor when changed by CTRL-Scrolling. This can be modified when is fixed. + connect(webEnginePagePointer, &QWebEnginePage::contentsSizeChanged, [webEnginePagePointer, this] () + { + // Only update the zoom factor action text if this is the current tab. + if (webEnginePagePointer == currentWebEnginePagePointer) + emit updateZoomFactorAction(webEnginePagePointer->zoomFactor()); + }); + // Display find text results. connect(webEnginePagePointer, SIGNAL(findTextFinished(const QWebEngineFindTextResult &)), this, SLOT(findTextFinished(const QWebEngineFindTextResult &)));