From 020e1e208a334d70444e4bb876c29301974c1b85 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Sun, 9 Jan 2022 16:23:58 -0500 Subject: [PATCH] Minor vertical text placement changes for Qt bookmarks view. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 2 +- src/drivers/Qt/TasEditor/bookmarks.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 912824b0..978ec383 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -4288,7 +4288,7 @@ void QPianoRoll::setFont( QFont &newFont ) { font = newFont; font.setBold(true); - QWidget::setFont( newFont ); + QWidget::setFont( font ); calcFontData(); } //---------------------------------------------------------------------------- diff --git a/src/drivers/Qt/TasEditor/bookmarks.cpp b/src/drivers/Qt/TasEditor/bookmarks.cpp index 33770117..a38a15f9 100644 --- a/src/drivers/Qt/TasEditor/bookmarks.cpp +++ b/src/drivers/Qt/TasEditor/bookmarks.cpp @@ -145,7 +145,7 @@ void BOOKMARKS::calcFontData(void) pxLineSpacing = metrics.lineSpacing() * 1.25; pxLineLead = pxLineSpacing - 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 );