comparison layer/SpectrumLayer.cpp @ 1277:82258db96244 horizontal-scale

Draw some ticks
author Chris Cannam
date Tue, 01 May 2018 16:32:35 +0100
parents b4cb11ca8233
children b6fc0970cd66
comparison
equal deleted inserted replaced
1276:b4cb11ca8233 1277:82258db96244
684 (v, this, paint, 684 (v, this, paint,
685 QRect(xorigin, h - scaleh - pkh - 1, w + xorigin, pkh)); 685 QRect(xorigin, h - scaleh - pkh - 1, w + xorigin, pkh));
686 686
687 LogNumericalScale().paintHorizontal 687 LogNumericalScale().paintHorizontal
688 (v, this, paint, 688 (v, this, paint,
689 QRect(xorigin, h - scaleh, w + xorigin, scaleh)); 689 QRect(int(getXForBin(v, 0)), h - scaleh, w + xorigin, scaleh));
690 690
691 paint.restore(); 691 paint.restore();
692 } 692 }
693 693
694 void 694 void