]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3047: Rollback modifications dedicated to property panel performance V9_4_0rc2
authorvsv <vsv@opencascade.com>
Tue, 19 Nov 2019 15:01:05 +0000 (18:01 +0300)
committerrnv <rnv@opencascade.com>
Tue, 19 Nov 2019 15:08:25 +0000 (18:08 +0300)
src/ModuleBase/ModuleBase_Tools.cpp
src/XGUI/XGUI_PropertyPanel.cpp

index a1c4684a672d661425034da933c6c0c1d97e505a..5055c0275ee8744e3b81c49f44a2f45524461a5c 100644 (file)
@@ -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();
index 24bd52b94f87a432032bdbce3762a6b43e90bc1f..c5d0c93b81ed19e0716dbd09f1aca7f4aa7c34c3 100644 (file)
@@ -303,6 +303,7 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget,
 
   QList<ModuleBase_ModelWidget*>::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) {