diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-05-03 22:15:38 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-27 00:46:35 +0200 |
commit | e1402c0d278b4570444e3e20b93fd5ab5619c8fc (patch) | |
tree | 72054723d3912389bfccc99d32af90687448f963 /src/gui/kernel/qplatformwindow_qpa.cpp | |
parent | 6874a33a75154400e8cd0424cec6d464b133c7cc (diff) |
Add a method for querying window activation status from QPA.
Add QPlatformWindow::isActive(), where the platform
can do further isActive tests, and Windows implementation for it.
Change-Id: I1acfc44d3a4ab36a3aaee52fb7b5f5b40661095e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformwindow_qpa.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp index 88f2a6481e..d2ec6833b0 100644 --- a/src/gui/kernel/qplatformwindow_qpa.cpp +++ b/src/gui/kernel/qplatformwindow_qpa.cpp @@ -169,6 +169,17 @@ bool QPlatformWindow::isExposed() const } /*! + Returns true if the window should appear active from a style perspective. + + This function can make platform-specific isActive checks, such as checking + if the QWindow is embedded in an active native window. +*/ +bool QPlatformWindow::isActive() const +{ + return false; +} + +/*! Requests setting the window state of this surface to \a type. Returns the actual state set. |