Ensure piano roll font is always forced to bold before calculating font pixel sizes.

This commit is contained in:
mjbudd77 2022-01-09 15:59:21 -05:00
parent 01e16837ef
commit 686f9d27bb
1 changed files with 3 additions and 0 deletions

View File

@ -4025,6 +4025,8 @@ QPianoRoll::QPianoRoll(QWidget *parent)
font.setStyle( QFont::StyleNormal );
font.setStyleHint( QFont::Monospace );
}
font.setBold(true);
pal = this->palette();
windowColor = pal.color(QPalette::Window);
@ -4285,6 +4287,7 @@ void QPianoRoll::vbarChanged(int val)
void QPianoRoll::setFont( QFont &newFont )
{
font = newFont;
font.setBold(true);
QWidget::setFont( newFont );
calcFontData();
}