data scale: use cliparser and add unit string

This commit is contained in:
Philippe Teuwen committed 2020-10-04 15:14:56 +02:00
1 parent 7009f2ade7
commit 2d15fde0a8
4 files changed
+25 -18

No files matched your search

+2 -1
View File
@@ -596,10 +596,11 @@ void Plot::paintEvent(QPaintEvent *event) {
//Draw annotations
char str[200];
sprintf(str, "@%u dt=%u [%2.2f] zoom=%2.2f CursorAPos=%u CursorBPos=%u GridX=%d GridY=%d (%s) GridXoffset=%d",
sprintf(str, "@%u dt=%i [%2.2f %s] zoom=%2.2f CursorAPos=%u CursorBPos=%u GridX=%d GridY=%d (%s) GridXoffset=%d",
GraphStart,
CursorBPos - CursorAPos,
((int32_t)(CursorBPos - CursorAPos)) / CursorScaleFactor,
CursorScaleFactorUint,
GraphPixelsPerPoint,
CursorAPos,
CursorBPos,