Salome HOME
updated copyright message
[modules/gui.git] / src / OCCViewer / OCCViewer_ToolTip.cxx
index 26ac23c1a3d19b94cbb1cc32c4ad8b5aceacbd63..7c7f1c7038e3af01959fd3d22a500473b5e09b41 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,6 @@
 
 #include <SUIT_ViewManager.h>
 
-#include <SelectMgr_EntityOwner.hxx>
-
 /*!
   Constructor
 
@@ -76,7 +74,7 @@ void OCCViewer_ToolTip::setFont( const QFont& f )
   \param txtRect - returned tooltip text rectangle
   \param rect - returned tooltip rectangle
  */
-void OCCViewer_ToolTip::onToolTip( QPoint p, QString& str, QFont& f, QRect& txtRect, QRect& rect )
+void OCCViewer_ToolTip::onToolTip( QPoint p, QString& str, QFont& /*f*/, QRect& txtRect, QRect& rect )
 {
   OCCViewer_Viewer* v = dynamic_cast<OCCViewer_Viewer*>( myWnd->getViewManager()->getViewModel() );
   Handle( AIS_InteractiveContext ) aCont = v->getAISContext();
@@ -88,7 +86,7 @@ void OCCViewer_ToolTip::onToolTip( QPoint p, QString& str, QFont& f, QRect& txtR
   if( !owner.IsNull() )
     emit toolTipFor( owner, txt );
 
-  Handle_AIS_InteractiveObject obj = aCont->DetectedInteractive();
+  Handle(AIS_InteractiveObject) obj = aCont->DetectedInteractive();
   if( txt.isEmpty() && !obj.IsNull() )
     emit toolTipFor( obj, txt );