src/eric7/UI/UserInterface.py

branch
eric7-maintenance
changeset 10174
6aac1022f330
parent 10148
31ba20629af4
parent 10158
b5aadedf4214
child 10222
1146cc8fbf5d
diff -r b8ad1f2d1b43 -r 6aac1022f330 src/eric7/UI/UserInterface.py
--- a/src/eric7/UI/UserInterface.py	Tue Aug 01 10:03:13 2023 +0200
+++ b/src/eric7/UI/UserInterface.py	Thu Aug 31 10:11:38 2023 +0200
@@ -2894,20 +2894,8 @@
         self.testProjectAct.setEnabled(False)
         self.actions.append(self.testProjectAct)
 
-        # check for Qt5 designer and linguist
-        if OSUtilities.isWindowsPlatform():
-            designerExe = os.path.join(
-                QtUtilities.getQtBinariesPath(),
-                "{0}.exe".format(QtUtilities.generateQtToolName("designer")),
-            )
-        elif OSUtilities.isMacPlatform():
-            designerExe = QtUtilities.getQtMacBundle("designer")
-        else:
-            designerExe = os.path.join(
-                QtUtilities.getQtBinariesPath(),
-                QtUtilities.generateQtToolName("designer"),
-            )
-        if os.path.exists(designerExe):
+        # check for Qt6 designer and linguist
+        if QtUtilities.hasQtDesigner():
             self.designer4Act = EricAction(
                 self.tr("Qt-Designer"),
                 EricPixmapCache.getIcon("designer4"),
@@ -2926,19 +2914,7 @@
         else:
             self.designer4Act = None
 
-        if OSUtilities.isWindowsPlatform():
-            linguistExe = os.path.join(
-                QtUtilities.getQtBinariesPath(),
-                "{0}.exe".format(QtUtilities.generateQtToolName("linguist")),
-            )
-        elif OSUtilities.isMacPlatform():
-            linguistExe = QtUtilities.getQtMacBundle("linguist")
-        else:
-            linguistExe = os.path.join(
-                QtUtilities.getQtBinariesPath(),
-                QtUtilities.generateQtToolName("linguist"),
-            )
-        if os.path.exists(linguistExe):
+        if QtUtilities.hasQtLinguist():
             self.linguist4Act = EricAction(
                 self.tr("Qt-Linguist"),
                 EricPixmapCache.getIcon("linguist4"),

eric ide

mercurial