def set_title(self, title=None):
        """
        Sets the editor title.

        :param title: Editor title.
        :type title: unicode
        :return: Method success.
        :rtype: bool
        """

        if not title:
            # TODO: https://bugreports.qt-project.org/browse/QTBUG-27084
            # titleTemplate = self.is_modified() and "{0} *" or "{0}"
            # title = titleTemplate.format(self.get_file_short_name())
            title = self.get_file_short_name()

        LOGGER.debug("> Setting editor title to '{0}'.".format(title))
        self.__title = title
        self.setWindowTitle(title)

        self.title_changed.emit()
        return True
def set_title ( self , title = None ) : if not title : title = self . get_file_short_name ( ) LOGGER . debug ( "> Setting editor title to '{0}'." . format ( title ) ) self . __title = title self . setWindowTitle ( title ) self . title_changed . emit ( ) return True
Sets the editor title.

        :param title: Editor title.
        :type title: unicode
        :return: Method success.
        :rtype: bool