Windows: Update the hasFrame setting when changing window flags
Since changing the window flags can make it frameless or have a frame then it should ensure that the hasFrame setting is updated accordingly when the window flags do. Change-Id: I7bf4995d7967623b117426d8750e63fa97967e2c Fixes: QTBUG-84029 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 60ec350bc79d562c0611bc31e8655729272c31d6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
36c55eb7eb
commit
d9b7b0f159
@ -2075,6 +2075,7 @@ QWindowsWindowData QWindowsWindow::setWindowFlags_sys(Qt::WindowFlags wt,
|
|||||||
QWindowsWindowData result = m_data;
|
QWindowsWindowData result = m_data;
|
||||||
result.flags = creationData.flags;
|
result.flags = creationData.flags;
|
||||||
result.embedded = creationData.embedded;
|
result.embedded = creationData.embedded;
|
||||||
|
result.hasFrame = (creationData.style & (WS_DLGFRAME | WS_THICKFRAME));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user