From 82f2e23e24be9db663bf7fca3512736631f6a5bf Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 12 Oct 2015 16:37:52 +0300 Subject: [PATCH] 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. --- src/ModuleBase/ModuleBase_WidgetEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2