From: vsv Date: Fri, 16 Aug 2019 12:12:43 +0000 (+0300) Subject: Improve performance X-Git-Tag: V9_4_0a2~4^2~138 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e1c91781f9495ee812377b0d74f2733fe954dd5;p=modules%2Fshaper.git Improve performance --- diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 40d74c1d2..eb66062e8 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -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 diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 349b61502..4e458fa7b 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -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(); } //******************************************************************** diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index ea527de89..db790beb9 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -1493,7 +1493,7 @@ void PartSet_Module::processEvent(const std::shared_ptr& 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 aUpdMsg =