diff view/Pane.cpp @ 1316:c0d8356e274f

Tidy edges of scale area on Mac
author Chris Cannam
date Thu, 09 Aug 2018 16:09:52 +0100
parents 1d7921b1852f
children 97c68bffbda6
line wrap: on
line diff
--- a/view/Pane.cpp	Wed Jul 04 15:34:16 2018 +0100
+++ b/view/Pane.cpp	Thu Aug 09 16:09:52 2018 +0100
@@ -670,10 +670,13 @@
 //      SVDEBUG << "Pane::paintEvent: calling paint.save() in vertical scale block" << endl;
         paint.save();
             
+        paint.setPen(Qt::NoPen);
+        paint.setBrush(getBackground());
+        paint.drawRect(0, 0, m_scaleWidth, height());
+        
         paint.setPen(getForeground());
-        paint.setBrush(getBackground());
-        paint.drawRect(0, -1, m_scaleWidth, height()+1);
-        
+        paint.drawLine(m_scaleWidth, 0, m_scaleWidth, height());
+
         paint.setBrush(Qt::NoBrush);
         scaleLayer->paintVerticalScale
             (this, m_manager->shouldShowVerticalColourScale(),