Windows: Do not set transient parent on popups.
Analoguous to Window creation code. Task-number: QTBUG-34503 Change-Id: I3cf7d58999bff5b106ca9d2e2c6f550e35f9db9a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
f48bc3ef40
commit
6ff08b7db3
@ -1123,6 +1123,8 @@ QPoint QWindowsWindow::mapFromGlobal(const QPoint &pos) const
|
||||
void QWindowsWindow::updateTransientParent() const
|
||||
{
|
||||
#ifndef Q_OS_WINCE
|
||||
if (window()->type() == Qt::Popup)
|
||||
return; // QTBUG-34503, // a popup stays on top, no parent, see also WindowCreationData::fromWindow().
|
||||
// Update transient parent.
|
||||
const HWND oldTransientParent =
|
||||
GetAncestor(m_data.hwnd, GA_PARENT) == GetDesktopWindow() ? GetAncestor(m_data.hwnd, GA_ROOTOWNER) : HWND(0);
|
||||
|
Loading…
Reference in New Issue
Block a user