eric7/ViewManager/ViewManager.py

branch
eric7
changeset 8318
962bce857696
parent 8314
e3642a6a1e71
child 8356
68ec9c3d4de5
--- a/eric7/ViewManager/ViewManager.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/ViewManager/ViewManager.py	Sun May 16 20:07:24 2021 +0200
@@ -11,15 +11,15 @@
 import os
 import contextlib
 
-from PyQt5.QtCore import (
+from PyQt6.QtCore import (
     pyqtSignal, pyqtSlot, Qt, QSignalMapper, QTimer, QFileInfo, QPoint,
     QCoreApplication
 )
-from PyQt5.QtGui import QKeySequence, QPixmap
-from PyQt5.QtWidgets import (
+from PyQt6.QtGui import QKeySequence, QPixmap
+from PyQt6.QtWidgets import (
     QToolBar, QDialog, QApplication, QMenu, QWidget
 )
-from PyQt5.Qsci import QsciScintilla
+from PyQt6.Qsci import QsciScintilla
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5FileDialog, E5MessageBox
@@ -1447,11 +1447,7 @@
         ####################################################################
         
         self.esm = QSignalMapper(self)
-        try:
-            self.alignMapper.mappedInt.connect(self.__editorCommand)
-        except AttributeError:
-            # pre Qt 5.15
-            self.esm.mapped[int].connect(self.__editorCommand)
+        self.esm.mappedInt.connect(self.__editorCommand)
         
         self.editorActGrp = createActionGroup(self.editActGrp)
         
@@ -3315,8 +3311,9 @@
         tb.addAction(self.gotoLastEditAct)
         
         tb.setAllowedAreas(
-            Qt.ToolBarAreas(Qt.ToolBarArea.TopToolBarArea |
-                            Qt.ToolBarArea.BottomToolBarArea))
+            Qt.ToolBarArea.TopToolBarArea |
+            Qt.ToolBarArea.BottomToolBarArea
+        )
         
         toolbarManager.addToolBar(tb, tb.windowTitle())
         toolbarManager.addAction(self.gotoAct, tb.windowTitle())

eric ide

mercurial