예제 #1
0
    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)
예제 #2
0
 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)
예제 #3
0
 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)