-// 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
#include <SUIT_ViewManager.h>
-#include <SelectMgr_EntityOwner.hxx>
-
/*!
Constructor
\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();
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 );