X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewerProxy.cpp;h=19453efdb3a4719691ba02a5952c86c9a4cf14fe;hb=a3b2736968186ac435b1e05e530c40becbc82301;hp=b5c3706da956764bebaa2b0db2a2341369ba8805;hpb=457214a36e82dde329881652d5516b49ad118fc9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index b5c3706da..19453efdb 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -97,6 +97,9 @@ void XGUI_ViewerProxy::connectToViewer() this, SIGNAL(keyRelease(QKeyEvent*))); connect(aViewer, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged())); + connect(aViewer, SIGNAL(contextMenuRequested(QContextMenuEvent*)), + this, SIGNAL(contextMenuRequested(QContextMenuEvent*))); + } else { XGUI_Viewer* aViewer = myWorkshop->mainWindow()->viewer(); @@ -125,6 +128,8 @@ void XGUI_ViewerProxy::connectToViewer() this, SLOT(onKeyRelease(XGUI_ViewWindow*, QKeyEvent*))); connect(aViewer, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged())); + connect(aViewer, SIGNAL(contextMenuRequested(QContextMenuEvent*)), + this, SIGNAL(contextMenuRequested(QContextMenuEvent*))); } }