From: nds Date: Mon, 29 May 2017 12:48:01 +0000 (+0300) Subject: Issues #2173, #2169: Activate PropertyPanel window to accept focus always in double... X-Git-Tag: V_2.7.1.1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41b102ea5301a150d838e9684345aaad901d0e2a;p=modules%2Fshaper.git Issues #2173, #2169: Activate PropertyPanel window to accept focus always in double editor(even after click in the viewer) --- diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 6128bf7a6..065916040 100755 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -410,8 +410,9 @@ bool XGUI_PropertyPanel::focusNextPrevChild_(bool theIsNext) } } + // we want to have property panel as an active window to enter values in double control + ModuleBase_Tools::activateWindow(this, "XGUI_PropertyPanel::activateNextWidget()"); ModuleBase_Tools::setFocus(aNewFocusWidget, "XGUI_PropertyPanel::focusNextPrevChild()"); - //aNewFocusWidget->setFocus(theIsNext ? Qt::TabFocusReason : Qt::BacktabFocusReason); ModuleBase_ModelWidget* aNewFocusMWidget = ModuleBase_ModelWidget::findModelWidget(this, aNewFocusWidget);