Fri, 21 May 2021 17:42:10 +0200
E5TabWidgets: fixed an issue using Qt.MouseButtons.
eric7/E5Gui/E5TabWidget.py | file | annotate | diff | comparison | revisions |
--- 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()