diff options
author | Liang Qi <liang.qi@qt.io> | 2017-01-25 11:53:11 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-01-25 11:53:11 +0100 |
commit | c5159ecfc36bc0f9bff45de78accd104b9637066 (patch) | |
tree | f63ce3effc703e23fb3f5e9ae3880e5759dfe8b0 /src/winextras/qwineventfilter.cpp | |
parent | 210b31fa48134ace767be47508b9918bcee9a22d (diff) | |
parent | 1b8836e00da53872bd3c285e5ab5ac8344ccd46c (diff) |
Merge remote-tracking branch 'origin/5.8' into devv5.9.0-alpha1
Conflicts:
.qmake.conf
src/imports/winextras/qquickjumplist.cpp
Change-Id: I2272b873c872bbabf7e274a478e3d16b92cdb434
Diffstat (limited to 'src/winextras/qwineventfilter.cpp')
-rw-r--r-- | src/winextras/qwineventfilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/winextras/qwineventfilter.cpp b/src/winextras/qwineventfilter.cpp index 3f6f013..6b31e71 100644 --- a/src/winextras/qwineventfilter.cpp +++ b/src/winextras/qwineventfilter.cpp @@ -113,7 +113,8 @@ void QWinEventFilter::setup() QWindow *QWinEventFilter::findWindow(HWND handle) { const WId wid = reinterpret_cast<WId>(handle); - foreach (QWindow *topLevel, QGuiApplication::topLevelWindows()) { + const auto topLevels = QGuiApplication::topLevelWindows(); + for (QWindow *topLevel : topLevels) { if (topLevel->handle() && topLevel->winId() == wid) return topLevel; } |