MCPcopy Create free account
hub / github.com/KDAB/hotspot / formatCost

Method formatCost

src/util.cpp:278–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278QString Util::formatCost(quint64 cost)
279{
280 // resulting format: 1.234E56
281 return QString::number(static_cast<double>(cost), 'G', 4);
282}
283
284QString Util::formatCostRelative(quint64 selfCost, quint64 totalCost, bool addPercentSign)
285{

Callers 3

parseDataFunction · 0.45
formatTooltipImplFunction · 0.45
formatTooltipMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected