path: root/src/gui/kernel/qguiapplication.h
diff options
authorAnselmo L. S. Melo <>2012-01-27 07:49:34 -0300
committerQt by Nokia <>2012-01-31 07:05:09 +0100
commit8839a0a001c7017a1acf1d7460c4c19893c74967 (patch)
treeb85e72ac6e15314799e45ccf5a0bb42d9a5aa0ac /src/gui/kernel/qguiapplication.h
parente8105e4783f3932885695353eefa1a60937929a1 (diff)
Fix QGuiApplication::topLevelWindows(), introducing allWindows()
As discussed on the development mailing list, the window list returned by QGuiApplication::topLevellWindows() included all QWindows, even the non top-level ones. This commit introduces the new method allWindows(), which returns the list of all QWindows, fixes the list returned by topLevelWindows() and also introduces tests for both methods. Change-Id: I761f0fcdec79f83949012c628655ed12cd18572c Reviewed-by: Jonas Gastal <> Reviewed-by: Samuel Rødal <>
Diffstat (limited to 'src/gui/kernel/qguiapplication.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.h b/src/gui/kernel/qguiapplication.h
index 90061ed338..9bf6a69c45 100644
--- a/src/gui/kernel/qguiapplication.h
+++ b/src/gui/kernel/qguiapplication.h
@@ -81,6 +81,7 @@ public:
QGuiApplication(int &argc, char **argv, int = ApplicationFlags);
virtual ~QGuiApplication();
+ static QWindowList allWindows();
static QWindowList topLevelWindows();
static QWindow *topLevelAt(const QPoint &pos);