Commit 7c45b976 authored by hjk's avatar hjk Committed by hjk
Browse files

analyzer: use separators for large numbers in cost columns



Task-number: QTCREATORBUG-6662
Change-Id: I9fe0a6e923e85d9707e39367e4d542fda98916a9
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 2719eb28
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment