From 4cd36b7cc560c928877bcdfbde2d11091bfedd40 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 19 Nov 2019 18:01:05 +0300 Subject: [PATCH] Issue #3047: Rollback modifications dedicated to property panel performance --- src/ModuleBase/ModuleBase_Tools.cpp | 1 + src/XGUI/XGUI_PropertyPanel.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index a1c4684a6..5055c0275 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -154,6 +154,7 @@ void activateWindow(QWidget* theWidget, const QString& theInfo) void setFocus(QWidget* theWidget, const QString& theInfo) { + activateWindow(theWidget); theWidget->setFocus(); // rectangle of focus is not visible on tool button widgets theWidget->update(); diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 24bd52b94..c5d0c93b8 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -303,6 +303,7 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget, QList::const_iterator anIt = myWidgets.begin(), aLast = myWidgets.end(); bool isFoundWidget = false; + ModuleBase_Tools::activateWindow(this, "XGUI_PropertyPanel::activateNextWidget()"); for (; anIt != aLast; anIt++) { ModuleBase_ModelWidget* aCurrentWidget = *anIt; if (isFoundWidget || !theWidget) { -- 2.39.2