From: nds Date: Mon, 7 Sep 2015 06:00:06 +0000 (+0300) Subject: displayAllResults is obsolete X-Git-Tag: V_1.4.0_beta4~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1be01557bbce2ce45f8f7e1cfce412005aa8e349;p=modules%2Fshaper.git displayAllResults is obsolete --- diff --git a/src/NewGeom/NewGeom_Module.cpp b/src/NewGeom/NewGeom_Module.cpp index 18188e575..79d725c64 100644 --- a/src/NewGeom/NewGeom_Module.cpp +++ b/src/NewGeom/NewGeom_Module.cpp @@ -173,9 +173,6 @@ bool NewGeom_Module::activateModule(SUIT_Study* theStudy) myWorkshop->objectBrowser()->rebuildDataTree(); myWorkshop->updateCommandStatus(); myIsOpened = false; - // the display all results is not necessary anymore, it was commented in XGUI_Workshop, - // so it should be commented here - //QTimer::singleShot(1000, myWorkshop, SLOT(displayAllResults())); } else myWorkshop->updateCommandStatus(); diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index c8058f38d..ebe199c4b 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -631,7 +631,6 @@ void XGUI_Workshop::onOpen() aSession->closeAll(); aSession->load(myCurrentDir.toLatin1().constData()); myObjectBrowser->rebuildDataTree(); - //displayAllResults(); updateCommandStatus(); QApplication::restoreOverrideCursor(); } @@ -1472,20 +1471,6 @@ void XGUI_Workshop::registerValidators() const ModelAPI_ValidatorsFactory* aFactory = aMgr->validators(); } -//************************************************************** -/*void XGUI_Workshop::displayAllResults() -{ - SessionPtr aMgr = ModelAPI_Session::get(); - DocumentPtr aRootDoc = aMgr->moduleDocument(); - displayDocumentResults(aRootDoc); - for (int i = 0; i < aRootDoc->size(ModelAPI_ResultPart::group()); i++) { - ObjectPtr aObject = aRootDoc->object(ModelAPI_ResultPart::group(), i); - ResultPartPtr aPart = std::dynamic_pointer_cast(aObject); - displayDocumentResults(aPart->partDoc()); - } - myDisplayer->updateViewer(); -}*/ - //************************************************************** void XGUI_Workshop::displayDocumentResults(DocumentPtr theDoc) {