1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP-857 OP-858 Added space between name and unit in Scope gadget legend

This commit is contained in:
Philippe Renon 2013-03-02 14:18:52 +01:00
parent ffbb0a5a8e
commit 31e3e73799

View File

@ -432,9 +432,9 @@ void ScopeGadgetWidget::addCurvePlot(QString uavObject, QString uavFieldSubField
QString curveNameScaled;
if(scaleOrderFactor == 0)
curveNameScaled = curveName + "(" + units + ")";
curveNameScaled = curveName + " (" + units + ")";
else
curveNameScaled = curveName + "(x10^" + QString::number(scaleOrderFactor) + " " + units + ")";
curveNameScaled = curveName + " (x10^" + QString::number(scaleOrderFactor) + " " + units + ")";
QwtPlotCurve* plotCurve = new QwtPlotCurve(curveNameScaled);
plotCurve->setPen(pen);