Draw fix for italic text not being turned off when it should in drawing of Qt TAS piano roll.

This commit is contained in:
mjbudd77 2022-01-08 04:41:22 -05:00
parent 3db26d3fb0
commit ed29139b87
1 changed files with 8 additions and 0 deletions

View File

@ -6686,6 +6686,13 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
//painter.drawText( x, y+pxLineTextOfs, tr(stmp) ); //painter.drawText( x, y+pxLineTextOfs, tr(stmp) );
painter.drawText( rect, Qt::AlignCenter, tr(stmp) ); painter.drawText( rect, Qt::AlignCenter, tr(stmp) );
if ( font.italic() )
{
font.setBold(true);
font.setItalic(false);
painter.setFont(font);
}
x = -pxLineXScroll; x = -pxLineXScroll;
int iImage = bookmarks->findBookmarkAtFrame(lineNum); int iImage = bookmarks->findBookmarkAtFrame(lineNum);
@ -6750,6 +6757,7 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
painter.drawLine( x, 0, x, pxLineSpacing ); painter.drawLine( x, 0, x, pxLineSpacing );
font.setBold(true); font.setBold(true);
font.setItalic(false);
painter.setFont(font); painter.setFont(font);