-// Copyright (C) 2013-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Function : checkHighlight
// Purpose :
//================================================================
-bool GraphicsView_Object::checkHighlight( double theX, double theY, QCursor& theCursor ) const
+bool GraphicsView_Object::checkHighlight( double theX, double theY, QCursor& /*theCursor*/ ) const
{
return !getRect().isNull() && getRect().contains( theX, theY );
}
bool GraphicsView_Object::highlight( double theX, double theY )
{
QCursor aCursor;
- if( myIsHighlighted = isVisible() )
+ if( (myIsHighlighted = isVisible()) )
myIsHighlighted = checkHighlight( theX, theY, aCursor );
return myIsHighlighted;
}
bool GraphicsView_Object::select( double theX, double theY, const QRectF& theRect )
{
QCursor aCursor;
- if( myIsSelected = isVisible() )
+ if( (myIsSelected = isVisible()) )
{
if( !theRect.isNull() )
myIsSelected = theRect.contains( getRect() );