From 61a3615c4651c8c82a3e6804c506f68c247bdd12 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 2 May 2012 16:27:46 +0200 Subject: [PATCH] QGuiApplication::activeWindow() is deprecated Change-Id: Id66740eb42fdaa86807222fbebc148de9434fa6e Reviewed-by: Paul Olav Tvete --- src/plugins/generic/evdevtouch/qevdevtouch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/generic/evdevtouch/qevdevtouch.cpp b/src/plugins/generic/evdevtouch/qevdevtouch.cpp index 01007b74dd..8d50991637 100644 --- a/src/plugins/generic/evdevtouch/qevdevtouch.cpp +++ b/src/plugins/generic/evdevtouch/qevdevtouch.cpp @@ -455,7 +455,7 @@ void QTouchScreenData::reportPoints() { QRect winRect; if (m_forceToActiveWindow) { - QWindow *win = QGuiApplication::activeWindow(); + QWindow *win = QGuiApplication::focusWindow(); if (!win) return; winRect = win->geometry();