diff layer/SpectrogramLayer.cpp @ 282:4edaff85875d

* Add mouse actions to key and mouse reference dialog * Use QDialogButtonBox in all dialogs, for proper button ordering across platforms (requires Qt 4.2) * Fix #1733610 program does not exit if preferences dialog visible on close
author Chris Cannam
date Thu, 05 Jul 2007 11:07:01 +0000
parents 3c402c6052f6
children 86a112b5b319
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Wed Jul 04 17:22:12 2007 +0000
+++ b/layer/SpectrogramLayer.cpp	Thu Jul 05 11:07:01 2007 +0000
@@ -2502,6 +2502,11 @@
                                   QPoint cursorPos) const
 {
     paint.save();
+    QFont fn = paint.font();
+    if (fn.pointSize() > 8) {
+        fn.setPointSize(fn.pointSize() - 1);
+        paint.setFont(fn);
+    }
     paint.setPen(m_crosshairColour);
 
     paint.drawLine(0, cursorPos.y(), cursorPos.x() - 1, cursorPos.y());