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:
hjk
2019-03-19 09:39:50 +01:00
parent e8305b7e99
commit 52ec46345b

View File

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