def dragEnterEvent(self, event: QDragEnterEvent) -> None: """ Reimplemented to tell the model the item which is dragged """ if self.model(): index = self.indexAt(event.pos()) self.model().setDragStart(index) super().dragEnterEvent(event)
def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: if a0.source() is self: self.drag_start_row = self.indexAt(a0.pos()).row() a0.acceptProposedAction()
def dragEnterEvent(self, event: QtGui.QDragEnterEvent): super().dragEnterEvent(event) item_index = self.indexAt(event.pos()) self._current_row = self.take_item(item_index)
def dragEnterEvent(self, event: QDragEnterEvent) -> None: if self.childAt(event.pos()) is self.label_drop_file: event.accept()