analyzer: use separators for large numbers in cost columns

Task-number: QTCREATORBUG-6662
Change-Id: I9fe0a6e923e85d9707e39367e4d542fda98916a9
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-12-13 19:02:46 +01:00
committed by hjk
parent 2719eb289c
commit 7c45b976b5

View File

@@ -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());