More minor vertical adjustments to Qt piano roll text placement.
This commit is contained in:
parent
0d84862d93
commit
a77cb754bf
|
@ -4302,7 +4302,7 @@ void QPianoRoll::calcFontData(void)
|
|||
pxLineSpacing = metrics.lineSpacing() * 1.25;
|
||||
pxLineLead = pxLineSpacing - metrics.height();
|
||||
pxCursorHeight = metrics.height();
|
||||
pxLineTextOfs = pxLineSpacing - ((pxLineSpacing - pxCharHeight) / 2) + 1;
|
||||
pxLineTextOfs = pxLineSpacing - ((pxLineSpacing - pxCharHeight) / 2) + (pxLineSpacing - pxCharHeight + 1) % 2;;
|
||||
|
||||
//printf("W:%i H:%i LS:%i \n", pxCharWidth, pxCharHeight, pxLineSpacing );
|
||||
|
||||
|
|
Loading…
Reference in New Issue