Helpviewer/UrlBar/SslLabel.py

changeset 2432
b1a2f9054b28
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 3160
209a07d7e401
diff -r fd7fa26076d2 -r b1a2f9054b28 Helpviewer/UrlBar/SslLabel.py
--- a/Helpviewer/UrlBar/SslLabel.py	Sat Feb 23 14:25:36 2013 +0100
+++ b/Helpviewer/UrlBar/SslLabel.py	Sun Feb 24 20:00:51 2013 +0100
@@ -7,7 +7,7 @@
 Module implementing the label to show some SSL info.
 """
 
-from PyQt4.QtCore import Qt, pyqtSignal
+from PyQt4.QtCore import Qt, pyqtSignal, QPoint
 from PyQt4.QtGui import QLabel
 
 
@@ -15,7 +15,7 @@
     """
     Class implementing the label to show some SSL info.
     """
-    clicked = pyqtSignal()
+    clicked = pyqtSignal(QPoint)
     
     okStyle = "QLabel { color : white; background-color : green; }"
     nokStyle = "QLabel { color : white; background-color : red; }"
@@ -38,7 +38,7 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if evt.button() == Qt.LeftButton:
-            self.clicked.emit()
+            self.clicked.emit(evt.globalPos())
         else:
             super().mouseReleaseEvent(evt)
     
@@ -49,7 +49,7 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if evt.button() == Qt.LeftButton:
-            self.clicked.emit()
+            self.clicked.emit(evt.globalPos())
         else:
             super().mouseDoubleClickEvent(evt)
     

eric ide

mercurial