forked from qt-creator/qt-creator
QmlDesigner: Fix floating dock widget behavior
Fix floating dock widget being covered by the main window if not having focus on macOS. Task-number: QDS-3144 Change-Id: I25230819a567a5582b97a0a52f0e46594dbab6ea Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
a2b6dba0bc
commit
aa0a682c11
@@ -562,7 +562,7 @@ static const char* windowsMessageString(int messageId)
|
||||
this,
|
||||
&FloatingDockContainer::close);
|
||||
#else
|
||||
setWindowFlags(Qt::Window | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint);
|
||||
setWindowFlags(Qt::Window | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint | Qt::Tool);
|
||||
QBoxLayout *boxLayout = new QBoxLayout(QBoxLayout::TopToBottom);
|
||||
boxLayout->setContentsMargins(0, 0, 0, 0);
|
||||
boxLayout->setSpacing(0);
|
||||
|
Reference in New Issue
Block a user