Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 1371:ca9a36a5ab76
Progressively increase sample-box size slightly
author | Chris Cannam |
---|---|
date | Fri, 02 Nov 2018 15:23:42 +0000 |
parents | f5566f7271fe |
children | 2c01be836570 |
comparison
equal
deleted
inserted
replaced
1368:38f35c2e03c4 | 1371:ca9a36a5ab76 |
---|---|
1039 paint->drawPath(meanPath); | 1039 paint->drawPath(meanPath); |
1040 paint->restore(); | 1040 paint->restore(); |
1041 } | 1041 } |
1042 | 1042 |
1043 if (!individualSamplePoints.empty()) { | 1043 if (!individualSamplePoints.empty()) { |
1044 double sz = ViewManager::scalePixelSize(2.0); | |
1045 if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) { | |
1046 if (v->getZoomLevel().level < 10) { | |
1047 sz = 1.5; | |
1048 } | |
1049 } | |
1044 paint->save(); | 1050 paint->save(); |
1045 paint->setPen(QPen(baseColour, penWidth)); | 1051 paint->setPen(QPen(baseColour, penWidth)); |
1046 double sz = ViewManager::scalePixelSize(2.0); | |
1047 for (QPointF p: individualSamplePoints) { | 1052 for (QPointF p: individualSamplePoints) { |
1048 paint->drawRect(QRectF(p.x() - sz/2, p.y() - sz/2, sz, sz)); | 1053 paint->drawRect(QRectF(p.x() - sz/2, p.y() - sz/2, sz, sz)); |
1049 } | 1054 } |
1050 paint->restore(); | 1055 paint->restore(); |
1051 } | 1056 } |