mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028162: Draw Harness - eliminate usage of deprecated Local Context
Create a general draw command 'VRelation' and drop the old 'relation' commands. Add test cases for new draw command "vrelation". Add two new methods: Activate and Deactivate which activate/deactivate the given selection mode for all displayed objects. Eliminate deprecated local context methods in ObjectCommands, QABugs. Eliminate deprecated local context methods in mfc standard sample and qt samples.
This commit is contained in:
@@ -325,8 +325,8 @@ void CGeometryDoc::Popup (const Standard_Integer theMouseX,
|
||||
const Handle(V3d_View)& theView)
|
||||
{
|
||||
Standard_Integer PopupMenuNumber=0;
|
||||
GetAISContext()->InitCurrent();
|
||||
if (GetAISContext()->MoreCurrent())
|
||||
GetAISContext()->InitSelected();
|
||||
if (GetAISContext()->MoreSelected())
|
||||
{
|
||||
PopupMenuNumber=1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user