Ensure piano roll font is always forced to bold before calculating font pixel sizes.
This commit is contained in:
parent
01e16837ef
commit
686f9d27bb
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue