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.setStyle( QFont::StyleNormal );
|
||||||
font.setStyleHint( QFont::Monospace );
|
font.setStyleHint( QFont::Monospace );
|
||||||
}
|
}
|
||||||
|
font.setBold(true);
|
||||||
|
|
||||||
pal = this->palette();
|
pal = this->palette();
|
||||||
|
|
||||||
windowColor = pal.color(QPalette::Window);
|
windowColor = pal.color(QPalette::Window);
|
||||||
|
@ -4285,6 +4287,7 @@ void QPianoRoll::vbarChanged(int val)
|
||||||
void QPianoRoll::setFont( QFont &newFont )
|
void QPianoRoll::setFont( QFont &newFont )
|
||||||
{
|
{
|
||||||
font = newFont;
|
font = newFont;
|
||||||
|
font.setBold(true);
|
||||||
QWidget::setFont( newFont );
|
QWidget::setFont( newFont );
|
||||||
calcFontData();
|
calcFontData();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue