Salome HOME
Refs #137 - UZ plane should be used in profile
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Module.cxx
index 09cd00f85a37587359680c4b37a6453f03db52c5..ae7dad74097e96dc76ce2a207e81a399cdc7283a 100644 (file)
@@ -655,7 +655,6 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
   if ( anIsOCCView || anIsVTKView ) {
     theMenu->addSeparator();
     theMenu->addAction( action( CopyViewerPositionId ) );
-    myPopupPos = QCursor::pos();
   }
 }
 
@@ -1457,7 +1456,8 @@ void HYDROGUI_Module::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEvent*
   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 )
   {
@@ -1485,12 +1485,3 @@ int HYDROGUI_Module::getObjectDisplayOrder(
 
   return anObjectEntries.indexOf( anEntry );
 }
-
-/**
- * Get the popup menu position
- * \return the position
- */
-QPoint HYDROGUI_Module::getPopupPosition() const
-{
- return myPopupPos;
-}