--- a/eric7/E5Gui/E5TabWidget.py Thu May 20 19:52:44 2021 +0200 +++ b/eric7/E5Gui/E5TabWidget.py Fri May 21 17:42:10 2021 +0200 @@ -83,9 +83,9 @@ @param event reference to the mouse move event (QMouseEvent) """ if ( - event.buttons() == Qt.MouseButtons(Qt.MouseButton.LeftButton) and - (event.position().toPoint() - self.__dragStartPos).manhattanLength() > - QApplication.startDragDistance() + event.buttons() == Qt.MouseButton.LeftButton and + (event.position().toPoint() - self.__dragStartPos) + .manhattanLength() > QApplication.startDragDistance() ): drag = QDrag(self) mimeData = QMimeData()