From 094b3b9d70e9432d70563bac7ef01224d4e73fc6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 4 Oct 2015 12:54:25 +0200 Subject: [PATCH] + remove SubWindow flag on OSX to put the expression input on top and get focus --- src/Gui/DlgExpressionInput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/DlgExpressionInput.cpp b/src/Gui/DlgExpressionInput.cpp index 46f31b7293..2d8b5717f7 100644 --- a/src/Gui/DlgExpressionInput.cpp +++ b/src/Gui/DlgExpressionInput.cpp @@ -66,7 +66,11 @@ DlgExpressionInput::DlgExpressionInput(const App::ObjectIdentifier & _path, DocumentObject * docObj = path.getDocumentObject(); ui->expression->setDocumentObject(docObj); +#if defined(Q_OS_MAC) + setWindowFlags(Qt::Widget | Qt::Popup | Qt::FramelessWindowHint); +#else setWindowFlags(Qt::SubWindow | Qt::Widget | Qt::Popup | Qt::FramelessWindowHint); +#endif setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_TranslucentBackground, true);