aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-03-19 09:39:50 +0100
committerhjk <hjk@qt.io>2019-03-21 08:14:06 +0000
commit52ec46345b9ab52ab355ed10fa8973828a1b52ba (patch)
treeb058fbd790ad21a9d56998da59be9b6f3bd1dd7b /src/plugins/android
parente8305b7e99e0e14caeb1854c2592b390586c7c78 (diff)
Android: Use QPalette::window() instead of background()
To avoid deprecation warnings. Change-Id: I802375afa8b0e717ab16fb209e719348900d0604 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/android')
-rw-r--r--src/plugins/android/androiddevicedialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/android/androiddevicedialog.cpp b/src/plugins/android/androiddevicedialog.cpp
index db70967727d..529b2a066a3 100644
--- a/src/plugins/android/androiddevicedialog.cpp
+++ b/src/plugins/android/androiddevicedialog.cpp
@@ -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());