forked from qt-creator/qt-creator
Qmake: Handle QFlags deprecation
Change-Id: I2565ce0b1b10d4cb663dc6ad2721b717ce48c17d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -138,7 +138,7 @@ void CostDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
|
||||
// Draw text.
|
||||
QLocale loc = opt.locale;
|
||||
loc.setNumberOptions(nullptr);
|
||||
loc.setNumberOptions({});
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user