def __init__(self, iconview, editor, model, *args, **kwargs):
        if not self.MODIFIABLE:
            self.__FIXED_NAMES.add(model.name)

        self._model = model
        EDSMEditorItem.__init__(self, iconview, editor, model.readable_name)
        QIconViewItem.__init__(self, iconview, model.readable_name, *args)
 def setText(self, name):
     pyname = qstrpy(name)
     if pyname in self.__FIXED_NAMES:
         return
     self._model.readable_name = pyname
     QIconViewItem.setText(self, name)
     self.set_popup_title(name)
     self._edsm_editor.edsm_model_updated(self._model)
 def update_model(self):
     name = self._model.readable_name
     QIconViewItem.setText(self, name)
     self.set_popup_title(name)
     self._edsm_editor.edsm_model_updated(self._model)