Minor vertical text placement changes for Qt bookmarks view.

This commit is contained in:
mjbudd77 2022-01-09 16:23:58 -05:00
parent 686f9d27bb
commit 020e1e208a
2 changed files with 2 additions and 2 deletions

View File

@ -4288,7 +4288,7 @@ void QPianoRoll::setFont( QFont &newFont )
{ {
font = newFont; font = newFont;
font.setBold(true); font.setBold(true);
QWidget::setFont( newFont ); QWidget::setFont( font );
calcFontData(); calcFontData();
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View File

@ -145,7 +145,7 @@ void BOOKMARKS::calcFontData(void)
pxLineSpacing = metrics.lineSpacing() * 1.25; pxLineSpacing = metrics.lineSpacing() * 1.25;
pxLineLead = pxLineSpacing - metrics.height(); pxLineLead = pxLineSpacing - metrics.height();
pxCursorHeight = metrics.height(); pxCursorHeight = metrics.height();
pxLineTextOfs = pxCharHeight + (pxLineSpacing - pxCharHeight) / 2; pxLineTextOfs = pxLineSpacing - ((pxLineSpacing - pxCharHeight) / 2) + (pxLineSpacing - pxCharHeight + 1) % 2;
//printf("W:%i H:%i LS:%i \n", pxCharWidth, pxCharHeight, pxLineSpacing ); //printf("W:%i H:%i LS:%i \n", pxCharWidth, pxCharHeight, pxLineSpacing );