eric6/Project/ProjectResourcesBrowser.py

changeset 7911
4621c9082a43
parent 7836
2f0d208b8137
child 7923
91e843545d9a
--- a/eric6/Project/ProjectResourcesBrowser.py	Wed Dec 23 16:28:35 2020 +0100
+++ b/eric6/Project/ProjectResourcesBrowser.py	Thu Dec 24 16:17:57 2020 +0100
@@ -78,7 +78,8 @@
         
         self.menu = QMenu(self)
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             self.menu.addAction(
                 self.tr('Compile resource'),
@@ -120,7 +121,8 @@
         self.menuActions.append(act)
         self.menu.addSeparator()
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             self.menu.addAction(
                 self.tr('New resource...'), self.__newResource)
@@ -148,7 +150,8 @@
 
         self.backMenu = QMenu(self)
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             self.backMenu.addAction(
                 self.tr('Compile all resources'),
@@ -190,7 +193,8 @@
         # create the menu for multiple selected files
         self.multiMenu = QMenu(self)
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             act = self.multiMenu.addAction(
                 self.tr('Compile resources'),
@@ -226,7 +230,8 @@
 
         self.dirMenu = QMenu(self)
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             self.dirMenu.addAction(
                 self.tr('Compile all resources'),
@@ -271,7 +276,8 @@
         
         self.dirMultiMenu = QMenu(self)
         if self.project.getProjectType() in [
-            "PyQt5", "PyQt5C", "E6Plugin", "PySide2", "PySide2C"
+            "PyQt5", "PyQt5C", "E6Plugin",
+            "PySide2", "PySide2C", "PySide6", "PySide6C"
         ]:
             self.dirMultiMenu.addAction(
                 self.tr('Compile all resources'),
@@ -549,7 +555,7 @@
     def __readStdout(self):
         """
         Private slot to handle the readyReadStandardOutput signal of the
-        pyrcc5/pyside2-rcc process.
+        pyrcc5/pyside2-rcc/pyside6-rcc process.
         """
         if self.compileProc is None:
             return
@@ -563,7 +569,7 @@
     def __readStderr(self):
         """
         Private slot to handle the readyReadStandardError signal of the
-        pyrcc5/pyside2-rcc/ process.
+        pyrcc5/pyside2-rcc/pyside6-rcc process.
         """
         if self.compileProc is None:
             return
@@ -655,7 +661,10 @@
                 self.rccCompiler = Utilities.generatePyQtToolPath('pyrcc5')
             elif self.project.getProjectType() in ["PySide2", "PySide2C"]:
                 self.rccCompiler = Utilities.generatePySideToolPath(
-                    'pyside2-rcc')
+                    'pyside2-rcc', variant=2)
+            elif self.project.getProjectType() in ["PySide6", "PySide6C"]:
+                self.rccCompiler = Utilities.generatePySideToolPath(
+                    'pyside6-rcc', variant=6)
             else:
                 return None
             defaultParameters = self.project.getDefaultRccCompilerParameters()

eric ide

mercurial