2892 ) |
2892 ) |
2893 self.testProjectAct.triggered.connect(self.__startTestProject) |
2893 self.testProjectAct.triggered.connect(self.__startTestProject) |
2894 self.testProjectAct.setEnabled(False) |
2894 self.testProjectAct.setEnabled(False) |
2895 self.actions.append(self.testProjectAct) |
2895 self.actions.append(self.testProjectAct) |
2896 |
2896 |
2897 # check for Qt5 designer and linguist |
2897 # check for Qt6 designer and linguist |
2898 if OSUtilities.isWindowsPlatform(): |
2898 if QtUtilities.hasQtDesigner(): |
2899 designerExe = os.path.join( |
|
2900 QtUtilities.getQtBinariesPath(), |
|
2901 "{0}.exe".format(QtUtilities.generateQtToolName("designer")), |
|
2902 ) |
|
2903 elif OSUtilities.isMacPlatform(): |
|
2904 designerExe = QtUtilities.getQtMacBundle("designer") |
|
2905 else: |
|
2906 designerExe = os.path.join( |
|
2907 QtUtilities.getQtBinariesPath(), |
|
2908 QtUtilities.generateQtToolName("designer"), |
|
2909 ) |
|
2910 if os.path.exists(designerExe): |
|
2911 self.designer4Act = EricAction( |
2899 self.designer4Act = EricAction( |
2912 self.tr("Qt-Designer"), |
2900 self.tr("Qt-Designer"), |
2913 EricPixmapCache.getIcon("designer4"), |
2901 EricPixmapCache.getIcon("designer4"), |
2914 self.tr("Qt-&Designer..."), |
2902 self.tr("Qt-&Designer..."), |
2915 0, |
2903 0, |
2924 self.designer4Act.triggered.connect(self.__designer) |
2912 self.designer4Act.triggered.connect(self.__designer) |
2925 self.actions.append(self.designer4Act) |
2913 self.actions.append(self.designer4Act) |
2926 else: |
2914 else: |
2927 self.designer4Act = None |
2915 self.designer4Act = None |
2928 |
2916 |
2929 if OSUtilities.isWindowsPlatform(): |
2917 if QtUtilities.hasQtLinguist(): |
2930 linguistExe = os.path.join( |
|
2931 QtUtilities.getQtBinariesPath(), |
|
2932 "{0}.exe".format(QtUtilities.generateQtToolName("linguist")), |
|
2933 ) |
|
2934 elif OSUtilities.isMacPlatform(): |
|
2935 linguistExe = QtUtilities.getQtMacBundle("linguist") |
|
2936 else: |
|
2937 linguistExe = os.path.join( |
|
2938 QtUtilities.getQtBinariesPath(), |
|
2939 QtUtilities.generateQtToolName("linguist"), |
|
2940 ) |
|
2941 if os.path.exists(linguistExe): |
|
2942 self.linguist4Act = EricAction( |
2918 self.linguist4Act = EricAction( |
2943 self.tr("Qt-Linguist"), |
2919 self.tr("Qt-Linguist"), |
2944 EricPixmapCache.getIcon("linguist4"), |
2920 EricPixmapCache.getIcon("linguist4"), |
2945 self.tr("Qt-&Linguist..."), |
2921 self.tr("Qt-&Linguist..."), |
2946 0, |
2922 0, |