if ( anIsOCCView || anIsVTKView ) {
theMenu->addSeparator();
theMenu->addAction( action( CopyViewerPositionId ) );
- myPopupPos = QCursor::pos();
}
}
bool doShow = false;
HYDROGUI_Displayer* aDisplayer = getDisplayer();
if ( aDisplayer )
- doShow = aDisplayer->GetCursorViewCoordinates( theViewWindow, QCursor::pos(), aX, aY, aZ );
+ aDisplayer->SaveCursorViewPosition( theViewWindow );
+ doShow = aDisplayer->GetCursorViewCoordinates( theViewWindow, aX, aY, aZ );
if ( doShow )
{
return anObjectEntries.indexOf( anEntry );
}
-
-/**
- * Get the popup menu position
- * \return the position
- */
-QPoint HYDROGUI_Module::getPopupPosition() const
-{
- return myPopupPos;
-}