graphic trace
This commit is contained in:
@@ -1345,7 +1345,7 @@ QString Graphic::pointCoords(QPointF point, bool x, bool y) {
|
|||||||
if (axis_type_x == Numeric)
|
if (axis_type_x == Numeric)
|
||||||
ret += QString::number(point.x(), 'f', 3);
|
ret += QString::number(point.x(), 'f', 3);
|
||||||
else
|
else
|
||||||
ret += QDateTime::fromMSecsSinceEpoch(point.x()).toString();
|
ret += QDateTime::fromMSecsSinceEpoch(point.x()).toString(Qt::SystemLocaleShortDate);
|
||||||
}
|
}
|
||||||
if (y) {
|
if (y) {
|
||||||
if (ret.size() > 1) ret += " ; ";
|
if (ret.size() > 1) ret += " ; ";
|
||||||
@@ -1416,7 +1416,7 @@ void Graphic::drawGuides() {
|
|||||||
}
|
}
|
||||||
if (gr >= 0) {
|
if (gr >= 0) {
|
||||||
apos = real2canvas(rpos).toPoint();
|
apos = real2canvas(rpos).toPoint();
|
||||||
str = graphics[gr].name + ": " + pointCoords(rpos) + fp_size;
|
str = " " + graphics[gr].name + ": " + pointCoords(rpos) + fp_size;
|
||||||
emit graphicTraceEvent(curTrace, point);
|
emit graphicTraceEvent(curTrace, point);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user