]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve performance
authorvsv <vsv@opencascade.com>
Fri, 16 Aug 2019 12:12:43 +0000 (15:12 +0300)
committervsv <vsv@opencascade.com>
Fri, 16 Aug 2019 12:12:43 +0000 (15:12 +0300)
src/ModuleBase/ModuleBase_Tools.cpp
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp
src/PartSet/PartSet_Module.cpp

index 40d74c1d20629effe4ebecb36d940559cc91d6ef..eb66062e82e26fbb0d6736af81e64fbedfdf31e8 100644 (file)
@@ -155,7 +155,7 @@ void setFocus(QWidget* theWidget, const QString& theInfo)
   activateWindow(theWidget);
   theWidget->setFocus();
   // rectangle of focus is not visible on tool button widgets
-  theWidget->repaint();
+  theWidget->update();
 #ifdef DEBUG_SET_FOCUS
   qDebug(QString("setFocus: %1").arg(theInfo).toStdString().c_str());
 #endif
index 349b61502e0921878fd37ddd801bddfe93520e27..4e458fa7bd5bf0f0349b893cfd07cef9a7132d83 100644 (file)
@@ -761,7 +761,7 @@ void ModuleBase_WidgetMultiSelector::updateSelectionList()
   }
 
   // We have to call repaint because sometimes the List control is not updated
-  myListView->getControl()->repaint();
+  myListView->getControl()->update();
 }
 
 //********************************************************************
index ea527de899254a782d8845df2224616f53f01131..db790beb92cb34adc6190d22105a3a10d6879379 100644 (file)
@@ -1493,7 +1493,7 @@ void PartSet_Module::processEvent(const std::shared_ptr<Events_Message>& theMess
     aDisplayer->updateViewer();
     // Update tree items if they are expanded
     if (needUpdate) {
-      aTreeView->viewport()->repaint(aTreeView->viewport()->rect());
+      aTreeView->viewport()->update(aTreeView->viewport()->rect());
     }
   } else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_OBJECT_CREATED)) {
     std::shared_ptr<ModelAPI_ObjectUpdatedMessage> aUpdMsg =