From 66d7e2ccde372ddd663ec6a415f70a204d87b29d Mon Sep 17 00:00:00 2001 From: peri4 Date: Fri, 22 Oct 2021 21:40:23 +0300 Subject: [PATCH] graphic trace --- libs/graphic/graphic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/graphic/graphic.cpp b/libs/graphic/graphic.cpp index 8c120ce..2eab36a 100644 --- a/libs/graphic/graphic.cpp +++ b/libs/graphic/graphic.cpp @@ -1345,7 +1345,7 @@ QString Graphic::pointCoords(QPointF point, bool x, bool y) { if (axis_type_x == Numeric) ret += QString::number(point.x(), 'f', 3); else - ret += QDateTime::fromMSecsSinceEpoch(point.x()).toString(); + ret += QDateTime::fromMSecsSinceEpoch(point.x()).toString(Qt::SystemLocaleShortDate); } if (y) { if (ret.size() > 1) ret += " ; "; @@ -1416,7 +1416,7 @@ void Graphic::drawGuides() { } if (gr >= 0) { apos = real2canvas(rpos).toPoint(); - str = graphics[gr].name + ": " + pointCoords(rpos) + fp_size; + str = " " + graphics[gr].name + ": " + pointCoords(rpos) + fp_size; emit graphicTraceEvent(curTrace, point); } }