'Update the title text item.'

def __updateTitleText(self):

    text = [('<div    align="center">%s' % escape(self.title()))]
    status_text = []
    progress_included = False
    if self.__statusMessage:
        msg = escape(self.__statusMessage)
        format_fields = dict(parse_format_fields(msg))
        if (('progress' in format_fields) and (len(format_fields) == 1)):
            (spec, _) = format_fields['progress']
            if (spec != None):
                progress_included = True
                progress_str = '{0:.0f}%'.format(self.progress())
                status_text.append(msg.format(progress=progress_str))
        else:
            status_text.append(msg)
    if ((self.progress() >= 0) and (not progress_included)):
        status_text.append(('%i%%' % int(self.progress())))
    if status_text:
        text += ['<br/>', '<span    style="font-style:    italic">', '<br/>'.join(status_text), '</span>']
    text += ['</div>']
    text = ''.join(text)
    self.prepareGeometryChange()
    self.__boundingRect = None
    self.captionTextItem.setHtml(text)
    self.captionTextItem.document().adjustSize()
    width = self.captionTextItem.textWidth()
    self.captionTextItem.setPos(((- width) / 2.0), 33)
