Added QWindow::isActive() and focus in / out events.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 29 Sep 2011 16:02:54 +0000 (18:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 5 Oct 2011 10:49:29 +0000 (12:49 +0200)
commit11070a090a9cc77d02315a3cb39eaf628bd9bfe7
treef9ea6781a9694e991136ffb78fb1f1382cbe2c92
parent253497b7446c7d723aa3bdd7152e25d6852f2604
Added QWindow::isActive() and focus in / out events.

Renamed QGuiApplication::activeWindow() to
QGuiApplication::focusWindow(), implemented QWindow::isActive() as a
style hint, and added focus in / out events.

Change-Id: I71866e76c5a817def3e17bcc20a4fc32081a0e7a
Reviewed-on: http://codereview.qt-project.org/5811
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication.h
src/gui/kernel/qguiapplication_p.h
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h
src/widgets/kernel/qapplication_qpa.cpp
src/widgets/kernel/qwidgetwindow_qpa.cpp
tests/auto/qfiledialog2/tst_qfiledialog2.cpp
tests/auto/qwindow/tst_qwindow.cpp