eric6/E5Gui/E5ModelMenu.py

changeset 7759
51aa6c6b66f7
parent 7533
88261c96484b
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
396 drag = QDrag(self) 396 drag = QDrag(self)
397 drag.setMimeData(self.__model.mimeData([idx])) 397 drag.setMimeData(self.__model.mimeData([idx]))
398 actionRect = self.actionGeometry(act) 398 actionRect = self.actionGeometry(act)
399 drag.setPixmap(self.grab(actionRect)) 399 drag.setPixmap(self.grab(actionRect))
400 400
401 if drag.exec_() == Qt.MoveAction: 401 if drag.exec() == Qt.MoveAction:
402 row = idx.row() 402 row = idx.row()
403 if self.__dropIndex == idx.parent() and self.__dropRow <= row: 403 if self.__dropIndex == idx.parent() and self.__dropRow <= row:
404 row += 1 404 row += 1
405 self.__model.removeRow(row, self.__root) 405 self.__model.removeRow(row, self.__root)
406 406

eric ide

mercurial