forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user