mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
* Remove the top blank in frameless window mode (#1887)
This commit is contained in:
parent
e4355eeb48
commit
2436adc257
@ -487,7 +487,7 @@ void MainWindow::setupToolBar()
|
|||||||
| Qt::WindowCloseButtonHint | Qt::WindowFullscreenButtonHint;
|
| Qt::WindowCloseButtonHint | Qt::WindowFullscreenButtonHint;
|
||||||
|
|
||||||
auto winFlags = windowFlags();
|
auto winFlags = windowFlags();
|
||||||
winFlags |= Qt::CustomizeWindowHint;
|
winFlags |= Qt::CustomizeWindowHint | Qt::FramelessWindowHint;
|
||||||
winFlags &= ~framelessFlags;
|
winFlags &= ~framelessFlags;
|
||||||
setWindowFlags(winFlags);
|
setWindowFlags(winFlags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user