eric7/Preferences/ToolGroupConfigurationDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8324
83084f088655
child 8358
144a6b854f70
--- a/eric7/Preferences/ToolGroupConfigurationDialog.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Preferences/ToolGroupConfigurationDialog.py	Sat May 22 18:51:46 2021 +0200
@@ -12,7 +12,7 @@
 from PyQt6.QtCore import Qt, pyqtSlot
 from PyQt6.QtWidgets import QDialog
 
-from E5Gui import E5MessageBox
+from E5Gui import EricMessageBox
 
 from .Ui_ToolGroupConfigurationDialog import Ui_ToolGroupConfigurationDialog
 
@@ -56,7 +56,7 @@
         groupName = self.nameEdit.text()
         
         if not groupName:
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr("Add tool group entry"),
                 self.tr("You have to give a name for the group to add."))
@@ -64,7 +64,7 @@
         
         if len(self.groupsList.findItems(
                 groupName, Qt.MatchFlag.MatchExactly)):
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr("Add tool group entry"),
                 self.tr("An entry for the group name {0} already exists.")
@@ -86,7 +86,7 @@
         groupName = self.nameEdit.text()
         
         if not groupName:
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr("Add tool group entry"),
                 self.tr("You have to give a name for the group to add."))
@@ -94,7 +94,7 @@
         
         if len(self.groupsList.findItems(
                 groupName, Qt.MatchFlag.MatchExactly)):
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr("Add tool group entry"),
                 self.tr("An entry for the group name {0} already exists.")
@@ -113,13 +113,13 @@
         if row < 0:
             return
         
-        res = E5MessageBox.yesNo(
+        res = EricMessageBox.yesNo(
             self,
             self.tr("Delete tool group entry"),
             self.tr("""<p>Do you really want to delete the tool group"""
                     """ <b>"{0}"</b>?</p>""")
             .format(self.groupsList.currentItem().text()),
-            icon=E5MessageBox.Warning)
+            icon=EricMessageBox.Warning)
         if not res:
             return
         

eric ide

mercurial