647 } |
647 } |
648 |
648 |
649 // Message log |
649 // Message log |
650 if( msglog() ) |
650 if( msglog() ) |
651 { |
651 { |
652 MessageManager* m = msglog(); |
|
653 int y = 0; |
652 int y = 0; |
654 const int margin = 2; |
653 const int margin = 2; |
655 QColor col = Qt::black; |
654 QColor col = Qt::black; |
656 paint.setPen( QPen() ); |
655 paint.setPen( QPen() ); |
657 |
656 |
658 for( const MessageManager::Line& line : *m ) |
657 for( const MessageManager::Line& line : *msglog()) |
659 { |
658 { |
660 col.setAlphaF( line.alpha ); |
659 col.setAlphaF( line.alpha ); |
661 paint.setPen( QPen( col )); |
660 paint.setPen( QPen( col )); |
662 paint.drawText( QPoint( margin, y + margin + metrics.ascent() ), line.text ); |
661 paint.drawText( QPoint( margin, y + margin + metrics.ascent() ), line.text ); |
663 y += metrics.height(); |
662 y += metrics.height(); |