Mercurial > hg > svgui
comparison layer/NoteLayer.cpp @ 695:6d9624e0ac55 tonioni
Toward getting piano scale showing properly
author | Chris Cannam |
---|---|
date | Tue, 03 Dec 2013 18:06:44 +0000 |
parents | ad12e428785b |
children | ceb9a2992d96 |
comparison
equal
deleted
inserted
replaced
694:ad12e428785b | 695:6d9624e0ac55 |
---|---|
822 | 822 |
823 void | 823 void |
824 NoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const | 824 NoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const |
825 { | 825 { |
826 float fmin, fmax; | 826 float fmin, fmax; |
827 getDisplayExtents(fmin, fmax); | 827 bool log; |
828 QString unit; | |
829 if (!getValueExtents(fmin, fmax, log, unit)) return; | |
828 PianoScale().paintPianoVertical | 830 PianoScale().paintPianoVertical |
829 (v, paint, QRect(0, 0, 10, v->height()), fmin, fmax); | 831 (v, paint, QRect(0, 0, 10, v->height()), fmin, fmax); |
830 paint.drawLine(10, 0, 10, v->height()); | 832 paint.drawLine(10, 0, 10, v->height()); |
831 } | 833 } |
832 | 834 |