From 8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e 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