forked from qt-creator/qt-creator
Android: Use QPalette::window() instead of background()
To avoid deprecation warnings. Change-Id: I802375afa8b0e717ab16fb209e719348900d0604 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -131,7 +131,7 @@ public:
|
||||
palette.setCurrentColorGroup(QPalette::Active);
|
||||
bool selected = opt.state & QStyle::State_Selected;
|
||||
QColor backgroundColor = selected ? palette.highlight().color()
|
||||
: palette.background().color();
|
||||
: palette.window().color();
|
||||
painter->setBrush(backgroundColor);
|
||||
|
||||
painter->drawRect(0, opt.rect.top(), opt.rect.width() + opt.rect.left(), opt.rect.height());
|
||||
|
Reference in New Issue
Block a user