From: nds Date: Mon, 12 Oct 2015 13:37:52 +0000 (+0300) Subject: Issue #1042 Sometimes when setting distance constraints, the input field is not displ... X-Git-Tag: V_1.4.0_demo2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82f2e23e24be9db663bf7fca3512736631f6a5bf;p=modules%2Fshaper.git Issue #1042 Sometimes when setting distance constraints, the input field is not displayed in the 3D view A correction for the case when the user calls the distance editor and moves quickly over the view with mouse button pressed. In SALOME version QtxWorkstack listens the events and set focus to the active widget. As a result the widget editor loses focus. --- diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.cpp b/src/ModuleBase/ModuleBase_WidgetEditor.cpp index 5aa9aa24f..6a9d95f6b 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetEditor.cpp @@ -45,7 +45,7 @@ ModuleBase_WidgetEditor::~ModuleBase_WidgetEditor() void editedValue(double& outValue, QString& outText) { - QDialog aDlg(QApplication::desktop(), Qt::Popup/* | Qt::FramelessWindowHint*/); + QDialog aDlg(QApplication::desktop(), Qt::FramelessWindowHint); QHBoxLayout* aLay = new QHBoxLayout(&aDlg); aLay->setContentsMargins(2, 2, 2, 2);