E5Gui/E5ClickableLabel.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3375
03f1833b601e
child 3656
441956d8fce5
--- a/E5Gui/E5ClickableLabel.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/E5Gui/E5ClickableLabel.py	Thu Apr 03 23:05:31 2014 +0200
@@ -18,9 +18,9 @@
     Class implementing a clickable label.
     
     @signal clicked(QPoint) emitted upon a click on the label
-            with the left buton
+        with the left button
     @signal middleClicked(QPoint) emitted upon a click on the label
-            with the middle buton or CTRL and left button
+        with the middle button or CTRL and left button
     """
     clicked = pyqtSignal(QPoint)
     middleClicked = pyqtSignal(QPoint)
@@ -44,7 +44,7 @@
                 self.middleClicked.emit(evt.globalPos())
             else:
                 self.clicked.emit(evt.globalPos())
-        elif evt.button() == Qt.MiddleButton and \
+        elif evt.button() == Qt.MidButton and \
                 self.rect().contains(evt.pos()):
             self.middleClicked.emit(evt.globalPos())
         else:

eric ide

mercurial