From bb97eec5f7436a3189235e205b5db03b40b87bdd Mon Sep 17 00:00:00 2001 From: shun_iwasawa Date: Oct 10 2017 04:13:04 +0000 Subject: fix numpad label --- diff --git a/toonz/sources/toonzqt/paletteviewergui.cpp b/toonz/sources/toonzqt/paletteviewergui.cpp index b2e01cf..b3f01c4 100644 --- a/toonz/sources/toonzqt/paletteviewergui.cpp +++ b/toonz/sources/toonzqt/paletteviewergui.cpp @@ -844,7 +844,9 @@ void PageViewer::paintEvent(QPaintEvent *e) { p.drawChord(ssRect, 0, -180 * 16); tmpFont.setPointSize(6); p.setFont(tmpFont); - p.drawText(ssRect.adjusted(0, 10, 0, 0), Qt::AlignCenter, + // make sure the text is visible with any font + static int rectTopAdjust = 19 - QFontMetrics(tmpFont).overlinePos(); + p.drawText(ssRect.adjusted(0, rectTopAdjust, 0, 0), Qt::AlignCenter, QString().setNum(shortcut)); }