Showing the changes to interface/src/ui/Stats.cpp (1 of 1 file). Show all
Unified · Split
| @@ -271,7 +271,7 @@ void Stats::display( · 270 unmodified lines | ||
| 271 | 271 | // TODO: the display of these timing details should all be moved to JavaScript |
| 272 | 272 | if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) { |
| 273 | 273 | // Timing details... |
| 274 | − verticalOffset += STATS_PELS_PER_LINE * 4; // skip 4 lines to be under the other columns | |
| 274 | + verticalOffset += STATS_PELS_PER_LINE * 6; // skip 6 lines to be under the other columns | |
| 275 | 275 | drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font, |
| 276 | 276 | "-------------------------------------------------------- Function " |
| 277 | 277 | "------------------------------------------------------- --msecs- -calls--", color); |
| @@ -294,13 +294,14 @@ void Stats::display( · 16 unmodified lines | ||
| 294 | 294 | j.toBack(); |
| 295 | 295 | while (j.hasPrevious()) { |
| 296 | 296 | j.previous(); |
| 297 | + QChar noBreakingSpace = QChar::Nbsp; | |
| 297 | 298 | QString functionName = j.value(); |
| 298 | 299 | const PerformanceTimerRecord& record = allRecords.value(functionName); |
| 299 | 300 | |
| 300 | 301 | QString perfLine = QString("%1: %2 [%3]"). |
| 301 | − arg(QString(qPrintable(functionName)), 120). | |
| 302 | − arg((float)record.getMovingAverage() / (float)USECS_PER_MSEC, 8, 'f', 3). | |
| 303 | − arg(record.getCount(), 6); | |
| 302 | + arg(QString(qPrintable(functionName)), 120, noBreakingSpace). | |
| 303 | + arg((float)record.getMovingAverage() / (float)USECS_PER_MSEC, 8, 'f', 3, noBreakingSpace). | |
| 304 | + arg((int)record.getCount(), 6, 10, noBreakingSpace); | |
| 304 | 305 | |
| 305 | 306 | verticalOffset += STATS_PELS_PER_LINE; |
| 306 | 307 | drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font, perfLine.toUtf8().constData(), color); |