mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-25 13:56:39 -04:00
Change all currently open tabs zoom when Default zoom level is changed
This commit is contained in:
parent
cd328e9c36
commit
bee470a46e
@ -49,6 +49,13 @@ ZimView::ZimView(TabBar *tabBar, QWidget *parent)
|
|||||||
auto key = mp_webView->zimId() + "/zoomFactor";
|
auto key = mp_webView->zimId() + "/zoomFactor";
|
||||||
settingsManager->deleteSettings(key);
|
settingsManager->deleteSettings(key);
|
||||||
});
|
});
|
||||||
|
connect(KiwixApp::instance()->getSettingsManager(), &SettingsManager::zoomChanged, this, [=]() {
|
||||||
|
auto key = mp_webView->zimId() + "/zoomFactor";
|
||||||
|
auto zimZoomFactor = KiwixApp::instance()->getSettingsManager()->getSettings(key);
|
||||||
|
if(!zimZoomFactor.toBool()) {
|
||||||
|
mp_webView->setZoomFactor(KiwixApp::instance()->getSettingsManager()->getZoomFactor());
|
||||||
|
}
|
||||||
|
});
|
||||||
connect(mp_webView->page(), &QWebEnginePage::fullScreenRequested, mp_tabBar, &TabBar::fullScreenRequested);
|
connect(mp_webView->page(), &QWebEnginePage::fullScreenRequested, mp_tabBar, &TabBar::fullScreenRequested);
|
||||||
connect(mp_webView, &WebView::titleChanged, mp_tabBar, &TabBar::on_webview_titleChanged);
|
connect(mp_webView, &WebView::titleChanged, mp_tabBar, &TabBar::on_webview_titleChanged);
|
||||||
connect(mp_webView, &WebView::iconChanged, this,
|
connect(mp_webView, &WebView::iconChanged, this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user