--- a/eric6/E5Gui/E5ModelToolBar.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ModelToolBar.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,9 +28,9 @@ @param parent reference to the parent widget (QWidget) """ if title is not None: - super(E5ModelToolBar, self).__init__(title, parent) + super().__init__(title, parent) else: - super(E5ModelToolBar, self).__init__(parent) + super().__init__(parent) self.__model = None @@ -193,7 +193,7 @@ if evt.mimeData().hasFormat(mimeType): evt.acceptProposedAction() - super(E5ModelToolBar, self).dragEnterEvent(evt) + super().dragEnterEvent(evt) def dropEvent(self, evt): """ @@ -222,7 +222,7 @@ self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), row, 0, parentIndex) - super(E5ModelToolBar, self).dropEvent(evt) + super().dropEvent(evt) def mouseMoveEvent(self, evt): """ @@ -232,22 +232,22 @@ @exception RuntimeError raised to indicate an invalid model index """ if self.__model is None: - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return if not (evt.buttons() & Qt.MouseButton.LeftButton): - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() if manhattanLength <= QApplication.startDragDistance(): - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return act = self.actionAt(self.__dragStartPosition) if act is None: - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return idx = self.index(act) @@ -272,7 +272,7 @@ @param evt reference to the hide event (QHideEvent) """ self.clear() - super(E5ModelToolBar, self).hideEvent(evt) + super().hideEvent(evt) def showEvent(self, evt): """ @@ -282,7 +282,7 @@ """ if len(self.actions()) == 0: self._build() - super(E5ModelToolBar, self).showEvent(evt) + super().showEvent(evt) def resetFlags(self): """