docs: def set_context_menu(self, context_menu):
          """
          Sets the context menu of the tree view.
  
          :param context_menu: QMenu
          """
          self.context_menu = context_menu
          self.context_menu.tree_view = self
          self.context_menu.init_actions()
          for action in self.context_menu.actions():
              self.addAction(action)