code: def toggle_icontext(self, state):
          
          self.sig_option_changed.emit('show_icontext', state)
          for widget in self.action_widgets:
              if widget is not self.button_menu:
                  if state:
                      widget.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
                  else:
                      widget.setToolButtonStyle(Qt.ToolButtonIconOnly)
docs: Toggle icon text