From 1be01557bbce2ce45f8f7e1cfce412005aa8e349 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 7 Sep 2015 09:00:06 +0300 Subject: [PATCH] displayAllResults is obsolete --- src/NewGeom/NewGeom_Module.cpp | 3 --- src/XGUI/XGUI_Workshop.cpp | 15 --------------- 2 files changed, 18 deletions(-) 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) { -- 2.39.2