~jelmer/qbrz/trunk

« back to all changes in this revision

Viewing changes to lib/logwidget.py

  • Committer: RJL situp
  • Date: 2021-01-08 11:30:55 UTC
  • Revision ID: it@file-away.co.uk-20210108113055-0tf85mh55o6jrplw
Removed @runs_in_loading_queue from log.py load() - now runs like the clappers and works correctly. Corrected elided_text in logwidget.

Show diffs side-by-side

added added

removed removed

Lines of Context:
742
742
            text_width = fm.width(option.text)
743
743
            text = option.text
744
744
            if text_width > text_rect.width():
745
 
                text = self.elidedText(fm, text_rect.width(),
746
 
                                       QtCore.Qt.ElideRight, text)
 
745
                # RJLRJL obsolete, so changed to fm (fontMetrics) instead
 
746
                # text = self.elidedText(fm, text_rect.width(), QtCore.Qt.ElideRight, text)
 
747
                text = fm.elidedText(text, QtCore.Qt.ElideRight, text_rect.width())
747
748
 
748
749
            painter.drawText(text_rect, QtCore.Qt.AlignLeft, text)
749
750