diff options
author | Andy Shaw <andy.shaw@digia.com> | 2015-03-06 11:08:04 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@digia.com> | 2015-03-06 10:38:51 +0000 |
commit | a9a41961c6ef3627a8dd2bf69664c13d9cb20568 (patch) | |
tree | 3e4c99cee5b14790266acaa950698f33828de505 /src/plugins/platforms/windows/qwindowswindow.h | |
parent | 143350c8767a54469721e5489f5d62a3ab34e264 (diff) |
Win QPA: Pass in the top level setting instead of relying on isTopLevel()
When updateDropSite() is called then most of the time calling
window()->isTopLevel() is enough. But in a case like while the window is
being reparented it cannot be trusted. So we pass it as a variable so that
it is possible to give it the correct information when it is being called.
Task-number: QTBUG-39739
Change-Id: I77a7ceeaf78e89b1f65a10d60df86088b35e0fe5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.h b/src/plugins/platforms/windows/qwindowswindow.h index 6d6d473ccd..0b42e77ecd 100644 --- a/src/plugins/platforms/windows/qwindowswindow.h +++ b/src/plugins/platforms/windows/qwindowswindow.h @@ -274,7 +274,7 @@ private: void destroyWindow(); inline bool isDropSiteEnabled() const { return m_dropTarget != 0; } void setDropSiteEnabled(bool enabled); - void updateDropSite(); + void updateDropSite(bool topLevel); void handleGeometryChange(); void handleWindowStateChange(Qt::WindowState state); inline void destroyIcon(); |