diff options
author | hjk <qtc-committer@nokia.com> | 2011-12-13 19:02:46 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-12-13 19:03:45 +0100 |
commit | 7c45b976b5d20cd06d43ac03a16c14d0971235a1 (patch) | |
tree | 53b7ed7c88ea460f232d595cbfa4f0a6f0ddafd2 /src/plugins/valgrind/callgrindcostdelegate.cpp | |
parent | 2719eb289c23fc77f429c9466d53b5cd47316324 (diff) | |
download | qt-creator-7c45b976b5d20cd06d43ac03a16c14d0971235a1.tar.gz |
analyzer: use separators for large numbers in cost columns
Task-number: QTCREATORBUG-6662
Change-Id: I9fe0a6e923e85d9707e39367e4d542fda98916a9
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/valgrind/callgrindcostdelegate.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindcostdelegate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindcostdelegate.cpp b/src/plugins/valgrind/callgrindcostdelegate.cpp index ee1f245e1f..cd7807f0d4 100644 --- a/src/plugins/valgrind/callgrindcostdelegate.cpp +++ b/src/plugins/valgrind/callgrindcostdelegate.cpp @@ -151,7 +151,9 @@ void CostDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, painter->drawRect(barRect); // Draw text. - const QString text = d->displayText(index, opt.locale); + QLocale loc = opt.locale; + loc.setNumberOptions(0); + const QString text = d->displayText(index, loc); const QBrush &textBrush = (option.state & QStyle::State_Selected ? opt.palette.highlightedText() : opt.palette.text()); painter->setBrush(Qt::NoBrush); painter->setPen(textBrush.color()); |