Minor vertical text placement changes for Qt bookmarks view.
This commit is contained in:
parent
686f9d27bb
commit
020e1e208a
|
@ -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();
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue