X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Selection.cpp;h=7ef11f4f66cb2d08724364aaedf882d93e04fffa;hb=61da4e89d2ec63daa429d304f928482a0e6fa0b7;hp=1b91cb3dccad3b2dc905d617c40f91ebf8b16474;hpb=c506c6e7f301201b56d0c3db2b255a629f923cb3;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Selection.cpp b/src/XGUI/XGUI_Selection.cpp index 1b91cb3dc..7ef11f4f6 100644 --- a/src/XGUI/XGUI_Selection.cpp +++ b/src/XGUI/XGUI_Selection.cpp @@ -19,10 +19,10 @@ XGUI_Selection::XGUI_Selection(XGUI_Workshop* theWorkshop) { } -std::list XGUI_Selection::getSelected(int theShapeTypeToSkip) const +QList XGUI_Selection::getSelected(int theShapeTypeToSkip) const { std::set aPrsFeatures; - std::list aPresentations; + QList aPresentations; XGUI_Displayer* aDisplayer = myWorkshop->displayer(); Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext(); @@ -44,15 +44,15 @@ std::list XGUI_Selection::getSelected(int theShapeTypeToSk } Handle(SelectMgr_EntityOwner) anOwner = aContext->SelectedOwner(); aPrs.setOwner(anOwner); - aPresentations.push_back(aPrs); + aPresentations.append(aPrs); } return aPresentations; } -std::list XGUI_Selection::getHighlighted(int theShapeTypeToSkip) const +QList XGUI_Selection::getHighlighted(int theShapeTypeToSkip) const { std::set aPrsFeatures; - std::list aPresentations; + QList aPresentations; XGUI_Displayer* aDisplayer = myWorkshop->displayer(); Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();