eric6/E5Gui/E5TabWidget.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r bc5b1b00560a -r c5e3705073eb eric6/E5Gui/E5TabWidget.py
--- a/eric6/E5Gui/E5TabWidget.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/E5Gui/E5TabWidget.py	Sat Sep 21 15:37:43 2019 +0200
@@ -81,9 +81,11 @@
         
         @param event reference to the mouse move event (QMouseEvent)
         """
-        if event.buttons() == Qt.MouseButtons(Qt.LeftButton) and \
-           (event.pos() - self.__dragStartPos).manhattanLength() > \
-                QApplication.startDragDistance():
+        if (
+            event.buttons() == Qt.MouseButtons(Qt.LeftButton) and
+            (event.pos() - self.__dragStartPos).manhattanLength() >
+            QApplication.startDragDistance()
+        ):
             drag = QDrag(self)
             mimeData = QMimeData()
             index = self.tabAt(event.pos())
@@ -102,10 +104,12 @@
         """
         mimeData = event.mimeData()
         formats = mimeData.formats()
-        if "action" in formats and \
-           mimeData.data("action") == b"tab-reordering" and \
-           "tabbar-id" in formats and \
-           int(mimeData.data("tabbar-id")) == id(self):
+        if (
+            "action" in formats and
+            mimeData.data("action") == b"tab-reordering" and
+            "tabbar-id" in formats and
+            int(mimeData.data("tabbar-id")) == id(self)
+        ):
             event.acceptProposedAction()
         E5WheelTabBar.dragEnterEvent(self, event)
     

eric ide

mercurial