eric6/QScintilla/ShellWindow.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
child 8150
fc1ae39af8c9
diff -r 27f636beebad -r 2c730d5fd177 eric6/QScintilla/ShellWindow.py
--- a/eric6/QScintilla/ShellWindow.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/QScintilla/ShellWindow.py	Tue Mar 02 17:17:09 2021 +0100
@@ -214,7 +214,7 @@
             """<p>This quits the Shell window.</p>"""
         ))
         self.exitAct.triggered.connect(self.quit)
-        self.exitAct.setMenuRole(QAction.QuitRole)
+        self.exitAct.setMenuRole(QAction.MenuRole.QuitRole)
         self.fileActions.append(self.exitAct)
 
         self.newWindowAct = E5Action(
@@ -251,7 +251,7 @@
             self.tr('Restart and Clear'),
             UI.PixmapCache.getIcon("restartDelete"),
             self.tr('Restart and Clear'),
-            Qt.Key_F4, 0, self, 'shell_clear_restart')
+            Qt.Key.Key_F4, 0, self, 'shell_clear_restart')
         self.clearRestartAct.setStatusTip(self.tr(
             'Clear the window and restart the shell'))
         self.clearRestartAct.setWhatsThis(self.tr(
@@ -1060,7 +1060,7 @@
         """
         from QScintilla.ZoomDialog import ZoomDialog
         dlg = ZoomDialog(self.__shell.getZoom(), self, None, True)
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             value = dlg.getZoomSize()
             self.__zoomTo(value)
         

eric ide

mercurial