def METHOD_NAME(self, value):
    """Set the item name. `value` if not empty will be used as
    the items DisplayRole otherwise an 'untitled' placeholder will
    be used.
    """
    self.__name = value
    if not value:
        self.setText("untitled")
    else:
        self.setText(value)