aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRael <rael.gc@gmail.com>2015-10-14 22:06:35 -0300
committerRael <rael.gc@gmail.com>2015-10-14 22:06:35 -0300
commit2dd8236094cd0b223b5280953b6456d290c02252 (patch)
tree1537440d70c3dc06ad9d40e1dacf5ef32f461157
parent5754dc119ac6e00de09cca27ebe91ad80424a367 (diff)
downloadscudcloud-2dd8236094cd0b223b5280953b6456d290c02252.zip
scudcloud-2dd8236094cd0b223b5280953b6456d290c02252.tar.gz
scudcloud-2dd8236094cd0b223b5280953b6456d290c02252.tar.bz2
Draft to use qupzilla desktop notifications
-rw-r--r--scudcloud-1.0/lib/wrapper.py4
1 files changed, 4 insertions, 0 deletions
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: