+
+void HYDROGUI_ProfileDlg::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEvent* theEvent )
+{
+ OCCViewer_ViewWindow* anOCCViewWindow =
+ dynamic_cast<OCCViewer_ViewWindow*>(theViewWindow);
+ if ( anOCCViewWindow && anOCCViewWindow->getViewPort() ) {
+ gp_Pnt aPnt = CurveCreator_Utils::ConvertClickToPoint(
+ theEvent->x(), theEvent->y(), anOCCViewWindow->getViewPort()->getView() );
+
+ // Show the coordinates
+ QString aX = HYDROGUI_Tool::GetCoordinateString( aPnt.X() );
+ QString anY = HYDROGUI_Tool::GetCoordinateString( aPnt.Y() );
+ myCoordLabel->setText( tr("UZ_COORDINATES_INFO").arg( aX ).arg( anY ) );
+ }
+}
+
+bool HYDROGUI_ProfileDlg::eventFilter( QObject* theObj, QEvent* theEvent )
+{
+ if ( theObj->inherits( "OCCViewer_ViewPort" ) )
+ {
+ if ( theEvent->type() == QEvent::Leave )
+ myCoordLabel->clear();
+
+ return false;
+ }
+
+ return HYDROGUI_InputPanel::eventFilter( theObj, theEvent );
+}