86 |
86 |
87 @param event reference to the mouse move event |
87 @param event reference to the mouse move event |
88 @type QMouseEvent |
88 @type QMouseEvent |
89 """ |
89 """ |
90 if ( |
90 if ( |
91 event.buttons() == Qt.MouseButtons(Qt.MouseButton.LeftButton) and |
91 event.buttons() == Qt.MouseButton.LeftButton and |
92 (event.position().toPoint() - self.__dragStartPos).manhattanLength() > |
92 (event.position().toPoint() - self.__dragStartPos) |
93 QApplication.startDragDistance() |
93 .manhattanLength() > QApplication.startDragDistance() |
94 ): |
94 ): |
95 drag = QDrag(self) |
95 drag = QDrag(self) |
96 mimeData = QMimeData() |
96 mimeData = QMimeData() |
97 index = self.tabAt(event.position().toPoint()) |
97 index = self.tabAt(event.position().toPoint()) |
98 mimeData.setText(self.tabText(index)) |
98 mimeData.setText(self.tabText(index)) |