mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1172 Well Alloc plot: Sorted the tracers according to contribution.
This commit is contained in:
2
ThirdParty/nightcharts/nightcharts.cpp
vendored
2
ThirdParty/nightcharts/nightcharts.cpp
vendored
@@ -371,7 +371,7 @@ void Nightcharts::drawLegend(QPainter *painter)
|
||||
float x = lX+dist;
|
||||
float y = lY+dist+i*(painter->fontMetrics().height()+2*dist);
|
||||
painter->drawRect(x,y,painter->fontMetrics().height(),painter->fontMetrics().height());
|
||||
painter->drawText(x+painter->fontMetrics().height()+dist,y+painter->fontMetrics().height()/2+dist,pieces[i].pname + " (" + QString::number(pieces[i].pPerc, 'd', 0)+"%)");
|
||||
painter->drawText(x+painter->fontMetrics().height()+dist,y+painter->fontMetrics().height()/2+dist,pieces[i].pname + " (" + QString::number(pieces[i].pPerc, 'd', 1)+"%)");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user