Changed piano roll marked frames to show in italic. Set all other text to bold. For Qt GUI.

This commit is contained in:
mjbudd77 2021-12-12 13:14:09 -05:00
parent 465f7d725d
commit 8ab19f64f6
1 changed files with 7 additions and 6 deletions

View File

@ -5492,6 +5492,7 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
char stmp[32]; char stmp[32];
char rowIsSel=0; char rowIsSel=0;
font.setBold(true);
painter.setFont(font); painter.setFont(font);
viewWidth = event->rect().width(); viewWidth = event->rect().width();
viewHeight = event->rect().height(); viewHeight = event->rect().height();
@ -5567,14 +5568,14 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
painter.fillRect( 0, 0, viewWidth, pxLineSpacing, windowColor ); painter.fillRect( 0, 0, viewWidth, pxLineSpacing, windowColor );
painter.setPen( black ); painter.setPen( black );
font.setBold(true); //font.setBold(true);
painter.setFont(font); //painter.setFont(font);
x = -pxLineXScroll + pxFrameColX + (pxWidthFrameCol - 6*pxCharWidth) / 2; x = -pxLineXScroll + pxFrameColX + (pxWidthFrameCol - 6*pxCharWidth) / 2;
painter.drawText( x, pxLineTextOfs, tr("Frame#") ); painter.drawText( x, pxLineTextOfs, tr("Frame#") );
font.setBold(false); //font.setBold(false);
painter.setFont(font); //painter.setFont(font);
// Draw Grid // Draw Grid
painter.drawLine( -pxLineXScroll, 0, -pxLineXScroll, viewHeight ); painter.drawLine( -pxLineXScroll, 0, -pxLineXScroll, viewHeight );
@ -5832,11 +5833,11 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
if (markersManager->getMarkerAtFrame(lineNum)) if (markersManager->getMarkerAtFrame(lineNum))
{ {
font.setBold(true); font.setItalic(true);
} }
else else
{ {
font.setBold(false); font.setItalic(false);
} }
painter.setFont(font); painter.setFont(font);
painter.drawText( x, y+pxLineTextOfs, tr(stmp) ); painter.drawText( x, y+pxLineTextOfs, tr(stmp) );