Merge remote-tracking branch 'origin/master' into HEAD
This commit is contained in:
commit
b90d7ee27a
1 changed files with 5 additions and 1 deletions
|
|
@ -267,7 +267,11 @@ void DefaultWindowHelper::init() {
|
||||||
bool shown,
|
bool shown,
|
||||||
bool titleShown,
|
bool titleShown,
|
||||||
Qt::WindowStates windowState) {
|
Qt::WindowStates windowState) {
|
||||||
window()->windowHandle()->setFlag(Qt::FramelessWindowHint, titleShown);
|
if (const auto handle = window()->windowHandle()) {
|
||||||
|
handle->setFlag(Qt::FramelessWindowHint, titleShown);
|
||||||
|
} else {
|
||||||
|
window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
|
||||||
|
}
|
||||||
updateWindowExtents();
|
updateWindowExtents();
|
||||||
}, window()->lifetime());
|
}, window()->lifetime());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue