eric6/E5Gui/E5ModelToolBar.py

changeset 7759
51aa6c6b66f7
parent 7628
f904d0eef264
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
255 drag = QDrag(self) 255 drag = QDrag(self)
256 drag.setMimeData(self.__model.mimeData([idx])) 256 drag.setMimeData(self.__model.mimeData([idx]))
257 actionRect = self.actionGeometry(act) 257 actionRect = self.actionGeometry(act)
258 drag.setPixmap(self.grab(actionRect)) 258 drag.setPixmap(self.grab(actionRect))
259 259
260 if drag.exec_() == Qt.MoveAction: 260 if drag.exec() == Qt.MoveAction:
261 row = idx.row() 261 row = idx.row()
262 if self.__dropIndex == idx.parent() and self.__dropRow <= row: 262 if self.__dropIndex == idx.parent() and self.__dropRow <= row:
263 row += 1 263 row += 1
264 self.__model.removeRow(row, self.__root) 264 self.__model.removeRow(row, self.__root)
265 265

eric ide

mercurial