src/gldraw.cpp

changeset 324
31c6e53e1e4e
parent 323
4200e1c89e97
child 336
9dd47cc12ab8
equal deleted inserted replaced
323:4200e1c89e97 324:31c6e53e1e4e
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();

mercurial