comparison 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
comparison
equal deleted inserted replaced
1315:1d7921b1852f 1316:c0d8356e274f
668 // Profiler profiler("Pane::paintEvent - painting vertical scale", true); 668 // Profiler profiler("Pane::paintEvent - painting vertical scale", true);
669 669
670 // SVDEBUG << "Pane::paintEvent: calling paint.save() in vertical scale block" << endl; 670 // SVDEBUG << "Pane::paintEvent: calling paint.save() in vertical scale block" << endl;
671 paint.save(); 671 paint.save();
672 672
673 paint.setPen(Qt::NoPen);
674 paint.setBrush(getBackground());
675 paint.drawRect(0, 0, m_scaleWidth, height());
676
673 paint.setPen(getForeground()); 677 paint.setPen(getForeground());
674 paint.setBrush(getBackground()); 678 paint.drawLine(m_scaleWidth, 0, m_scaleWidth, height());
675 paint.drawRect(0, -1, m_scaleWidth, height()+1); 679
676
677 paint.setBrush(Qt::NoBrush); 680 paint.setBrush(Qt::NoBrush);
678 scaleLayer->paintVerticalScale 681 scaleLayer->paintVerticalScale
679 (this, m_manager->shouldShowVerticalColourScale(), 682 (this, m_manager->shouldShowVerticalColourScale(),
680 paint, QRect(0, 0, m_scaleWidth, height())); 683 paint, QRect(0, 0, m_scaleWidth, height()));
681 684