mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-30 00:50:51 +08:00
ui: Use one web view per tab (#825)
This change stops practice of sharing a single web view between tabs.
This commit is contained in:
committed by
Jerzy Kozera
parent
4ba5512411
commit
5b9fed94db
@@ -25,6 +25,8 @@
|
||||
|
||||
#include "../mainwindow.h"
|
||||
|
||||
#include <core/application.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QWebFrame>
|
||||
#include <QWheelEvent>
|
||||
@@ -34,6 +36,9 @@ using namespace Zeal::WidgetUi;
|
||||
WebView::WebView(QWidget *parent) :
|
||||
QWebView(parent)
|
||||
{
|
||||
setAttribute(Qt::WA_AcceptTouchEvents, false);
|
||||
page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
|
||||
page()->setNetworkAccessManager(Core::Application::instance()->networkManager());
|
||||
}
|
||||
|
||||
int WebView::zoomLevel() const
|
||||
|
||||
Reference in New Issue
Block a user