changeset 681:ac7b40a64109

Merge from branch scale-alternative
author Chris Cannam
date Fri, 07 Dec 2018 13:43:08 +0000
parents 21e03596dd93 (current diff) ad3e5693cb76 (diff)
children 751b21af6b6f
files
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/changesetview.cpp	Fri Dec 07 13:41:32 2018 +0000
+++ b/src/changesetview.cpp	Fri Dec 07 13:43:08 2018 +0000
@@ -59,6 +59,7 @@
 
     paint->save();
     QFont f(paint->font());
+    f.setPixelSize(11);
     f.setBold(true);
     paint->setFont(f);
 
--- a/src/panned.cpp	Fri Dec 07 13:41:32 2018 +0000
+++ b/src/panned.cpp	Fri Dec 07 13:43:08 2018 +0000
@@ -34,6 +34,19 @@
     connect(m_dragTimer, SIGNAL(timeout()), this, SLOT(dragTimerTimeout()));
     setRenderHints(QPainter::Antialiasing |
                    QPainter::TextAntialiasing);
+
+    double baseEm;
+#ifdef Q_OS_MAC
+    baseEm = 17.0;
+#else
+    baseEm = 15.0;
+#endif
+    double em = QFontMetrics(QFont()).height();
+    double ratio = em / baseEm;
+
+    QMatrix m = matrix();
+    m.scale(ratio, ratio);
+    setMatrix(m);
 }
 
 void