changeset 1316:c0d8356e274f

Tidy edges of scale area on Mac
author Chris Cannam
date Thu, 09 Aug 2018 16:09:52 +0100
parents 1d7921b1852f
children c2fa7bb1eca9 8068a0bee550
files view/Pane.cpp
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
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(),