QGuiApplication::activeWindow() is deprecated

Change-Id: Id66740eb42fdaa86807222fbebc148de9434fa6e
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
This commit is contained in:
Thiago Macieira 2012-05-02 16:27:46 +02:00 committed by Qt by Nokia
parent 6abc66e076
commit 61a3615c46

View File

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