From 2dd8236094cd0b223b5280953b6456d290c02252 Mon Sep 17 00:00:00 2001 From: Rael Date: Wed, 14 Oct 2015 22:06:35 -0300 Subject: Draft to use qupzilla desktop notifications --- scudcloud-1.0/lib/wrapper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py index 318ceb5..eb45713 100644 --- a/scudcloud-1.0/lib/wrapper.py +++ b/scudcloud-1.0/lib/wrapper.py @@ -24,8 +24,12 @@ class Wrapper(QWebView): self.connect(self, SIGNAL("loadStarted()"), self.loadStarted) self.connect(self, SIGNAL("loadFinished(bool)"), self.loadFinished) self.connect(self, SIGNAL("linkClicked(const QUrl&)"), self.linkClicked) + #self.page().connect(self.page(), SIGNAL("featurePermissionRequested (QWebFrame*,QWebPage::Feature)"), self.permissionRequested) self.addActions() + def permissionRequested(self, frame, feature): + self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser) + def configure_proxy(self): proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY')) if proxy.hostname is not None and proxy.port is not None: -- cgit v1.1