E5Gui/E5Action.py

changeset 1580
7495b3e892a9
parent 1521
1e684e74d2a1
child 2302
f29e9405c851
--- a/E5Gui/E5Action.py	Sun Jan 22 19:27:40 2012 +0100
+++ b/E5Gui/E5Action.py	Tue Jan 24 19:29:23 2012 +0100
@@ -159,6 +159,15 @@
         super().setShortcuts(shortcuts)
         self.__ammendToolTip()
         
+    def setIconText(self, text):
+        """
+        Public slot to set the icon text of the action.
+        
+        @param text new icon text (string)
+        """
+        super().setIconText(text)
+        self.__ammendToolTip()
+        
     def __ammendToolTip(self):
         """
         Private slot to add the primary keyboard accelerator to the tooltip.

eric ide

mercurial