anAddElementLayout->setSpacing( 5 );
myViewManager = new OCCViewer_ViewManager( theModule->getApp()->activeStudy(), 0 );
- OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );
+ OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( false /*erase trihedron*/);
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,
myViewManager->setViewModel( aViewer );// custom view model, which extends SALOME_View interface
SUIT_ViewWindow* aViewWin = myViewManager->createViewWindow();
+ aViewer->setStaticTrihedronDisplayed( false );
addWidget( aViewWin, 4 );
myEditorWidget->setOCCViewer( aViewer );
bool HYDROGUI_ProfileDlg::eventFilter( QObject* theObj, QEvent* theEvent )
{
- if ( theObj->inherits( "OCCViewer_ViewPort" ) &&
- theEvent->type() == QEvent::Leave ) {
- myCoordLabel->clear();
+ if ( theObj->inherits( "OCCViewer_ViewPort" ) )
+ {
+ if ( theEvent->type() == QEvent::Leave )
+ myCoordLabel->clear();
+
+ return false;
}
return HYDROGUI_InputPanel::eventFilter( theObj, theEvent );