Ejemplo n.º 1
0
 def mousePressEvent(self, event):
     ep = event.pos()
     if (
         self.indexAt(ep) in self.selectionModel().selectedIndexes()
         and event.button() == Qt.LeftButton
         and not self.event_has_mods()
     ):
         self.drag_start_pos = ep
     return QTableView.mousePressEvent(self, event)
Ejemplo n.º 2
0
 def mousePressEvent(self, event):
     ep = event.pos()
     if self.indexAt(ep) in self.selectionModel().selectedIndexes() and \
             event.button() == Qt.LeftButton and not self.event_has_mods():
         self.drag_start_pos = ep
     return QTableView.mousePressEvent(self, event)