Exemplo n.º 1
2
 def mouseDoubleClickEvent( self, event ):
     " Generates the doubleClicked signal "
     if event.button() == Qt.LeftButton:
         self.doubleClicked.emit()
     QLabel.mouseDoubleClickEvent( self, event )
     return
Exemplo n.º 2
1
 def mouseDoubleClickEvent( self, event ):
     if event.button() == Qt.LeftButton:
         if self.__callback is None:
             txt = self.text().strip()
             if txt:
                 QApplication.clipboard().setText( txt )
         else:
             self.__callback()
     QLabel.mouseDoubleClickEvent( self, event )
     return
Exemplo n.º 3
0
 def mouseDoubleClickEvent(self, event):
     QLabel.mouseDoubleClickEvent(self, event)
     self.emit(SIGNAL('double click'))