From 790e2761020bbb29e3469f3a92e8989ae418bd7d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 30 Oct 2017 12:16:58 +0200 Subject: [PATCH] SonarQube warnings. --HG-- branch : develop --- .../toolpoint/toolsinglepoint/vtoolbasepoint.cpp | 6 ------ .../toolpoint/toolsinglepoint/vtoolbasepoint.h | 1 - src/libs/vwidgets/vcontrolpointspline.cpp | 6 ------ src/libs/vwidgets/vcontrolpointspline.h | 1 - src/libs/vwidgets/vtextgraphicsitem.cpp | 10 ---------- src/libs/vwidgets/vtextgraphicsitem.h | 1 - 6 files changed, 25 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp index b190492f3..0a1bc001c 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp @@ -315,12 +315,6 @@ void VToolBasePoint::hoverEnterEvent(QGraphicsSceneHoverEvent *event) } } -//--------------------------------------------------------------------------------------------------------------------- -void VToolBasePoint::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) -{ - VToolSinglePoint::hoverLeaveEvent(event); -} - //--------------------------------------------------------------------------------------------------------------------- void VToolBasePoint::mousePressEvent(QGraphicsSceneMouseEvent *event) { diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.h b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.h index f0b25887d..0552bf33a 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.h +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.h @@ -93,7 +93,6 @@ protected: virtual void SaveDialog(QDomElement &domElement, QList &oldDependencies, QList &newDependencies) Q_DECL_OVERRIDE; virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE; - virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE; virtual void mousePressEvent( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE; virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE; virtual void SaveOptions(QDomElement &tag, QSharedPointer &obj) Q_DECL_OVERRIDE; diff --git a/src/libs/vwidgets/vcontrolpointspline.cpp b/src/libs/vwidgets/vcontrolpointspline.cpp index 10451af46..eca9b4d12 100644 --- a/src/libs/vwidgets/vcontrolpointspline.cpp +++ b/src/libs/vwidgets/vcontrolpointspline.cpp @@ -115,12 +115,6 @@ void VControlPointSpline::hoverEnterEvent(QGraphicsSceneHoverEvent *event) VScenePoint::hoverEnterEvent(event); } -//--------------------------------------------------------------------------------------------------------------------- -void VControlPointSpline::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) -{ - VScenePoint::hoverLeaveEvent(event); -} - //--------------------------------------------------------------------------------------------------------------------- /** * @brief itemChange handle item change. diff --git a/src/libs/vwidgets/vcontrolpointspline.h b/src/libs/vwidgets/vcontrolpointspline.h index b85970c13..e316a2318 100644 --- a/src/libs/vwidgets/vcontrolpointspline.h +++ b/src/libs/vwidgets/vcontrolpointspline.h @@ -85,7 +85,6 @@ protected: VScaledLine *controlLine; virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE; - virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE; QVariant itemChange ( GraphicsItemChange change, const QVariant &value ) Q_DECL_OVERRIDE; virtual void mousePressEvent( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE; virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE; diff --git a/src/libs/vwidgets/vtextgraphicsitem.cpp b/src/libs/vwidgets/vtextgraphicsitem.cpp index 2c6784c59..4231f8f04 100644 --- a/src/libs/vwidgets/vtextgraphicsitem.cpp +++ b/src/libs/vwidgets/vtextgraphicsitem.cpp @@ -635,16 +635,6 @@ void VTextGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent *pME) VPieceItem::hoverEnterEvent(pME); } -//--------------------------------------------------------------------------------------------------------------------- -/** - * @brief VTextGraphicsItem::hoverLeaveEvent tries to restore normal mouse cursor - * @param pHE not used - */ -void VTextGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* pHE) -{ - VPieceItem::hoverLeaveEvent(pHE); -} - //--------------------------------------------------------------------------------------------------------------------- /** * @brief VTextGraphicsItem::UpdateBox redraws the label content diff --git a/src/libs/vwidgets/vtextgraphicsitem.h b/src/libs/vwidgets/vtextgraphicsitem.h index db32717bb..31a304953 100644 --- a/src/libs/vwidgets/vtextgraphicsitem.h +++ b/src/libs/vwidgets/vtextgraphicsitem.h @@ -75,7 +75,6 @@ protected: virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* pME) Q_DECL_OVERRIDE; virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *pME) Q_DECL_OVERRIDE; virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* pHE) Q_DECL_OVERRIDE; - virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* pHE) Q_DECL_OVERRIDE; void UpdateBox(); void CorrectLabel();