+ remove SubWindow flag on OSX to put the expression input on top and get focus

This commit is contained in:
wmayer 2015-10-04 12:54:25 +02:00
parent aa5b388f4a
commit c5246875b1

View File

@ -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);