src/eric7/UI/UserInterface.py

branch
eric7
changeset 11216
a1471981ef18
parent 11215
d07c71a34adf
child 11217
856628e8a303
--- a/src/eric7/UI/UserInterface.py	Thu Apr 10 18:39:29 2025 +0200
+++ b/src/eric7/UI/UserInterface.py	Sun Apr 13 14:46:18 2025 +0200
@@ -3789,32 +3789,6 @@
         Private slot to initialize the actions to show the PySide
         documentation.
         """
-        if QtUtilities.checkPyside(variant=2):
-            self.pyside2DocAct = EricAction(
-                self.tr("PySide2 Documentation"),
-                self.tr("PySide2 Documentation"),
-                0,
-                0,
-                self,
-                "pyside2_documentation",
-            )
-            self.pyside2DocAct.setStatusTip(self.tr("Open PySide2 Documentation"))
-            self.pyside2DocAct.setWhatsThis(
-                self.tr(
-                    """<b>PySide2 Documentation</b>"""
-                    """<p>Display the PySide2 Documentation. Dependent upon your"""
-                    """ settings, this will either show the help in Eric's"""
-                    """ internal help viewer/web browser, or execute a web"""
-                    """ browser or Qt Assistant. </p>"""
-                )
-            )
-            self.pyside2DocAct.triggered.connect(
-                lambda: self.__showPySideDoc(variant=2)
-            )
-            self.actions.append(self.pyside2DocAct)
-        else:
-            self.pyside2DocAct = None
-
         if QtUtilities.checkPyside(variant=6):
             self.pyside6DocAct = EricAction(
                 self.tr("PySide6 Documentation"),
@@ -4144,8 +4118,6 @@
         self.__menus["help"].addAction(self.qt6DocAct)
         self.__menus["help"].addAction(self.pyqt5DocAct)
         self.__menus["help"].addAction(self.pyqt6DocAct)
-        if self.pyside2DocAct is not None:
-            self.__menus["help"].addAction(self.pyside2DocAct)
         if self.pyside6DocAct is not None:
             self.__menus["help"].addAction(self.pyside6DocAct)
         self.__menus["help"].addSeparator()
@@ -7073,11 +7045,11 @@
         else:
             self.__customViewer(home)
 
-    def __showPySideDoc(self, variant=2):
-        """
-        Private slot to show the PySide2/PySide6 documentation.
-
-        @param variant PySide variant (2 or 6)
+    def __showPySideDoc(self, variant=6):
+        """
+        Private slot to show the PySide documentation.
+
+        @param variant PySide variant
         @type int or str
         """
         pysideDocDir = Preferences.getHelp("PySide{0}DocDir".format(variant))

eric ide

mercurial