From 41b102ea5301a150d838e9684345aaad901d0e2a Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 29 May 2017 15:48:01 +0300 Subject: [PATCH] Issues #2173, #2169: Activate PropertyPanel window to accept focus always in double editor(even after click in the viewer) --- src/XGUI/XGUI_PropertyPanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2