diff --git a/mix/InverseMouseArea.cpp b/mix/InverseMouseArea.cpp index 06159033c..869af60cf 100644 --- a/mix/InverseMouseArea.cpp +++ b/mix/InverseMouseArea.cpp @@ -43,7 +43,7 @@ bool InverseMouseArea::eventFilter(QObject* _obj, QEvent* _ev) return false; } -bool InverseMouseArea::contains(const QPoint& _point) const +bool InverseMouseArea::contains(const QPointF& _point) const { if (!this->m_active) return false; diff --git a/mix/InverseMouseArea.h b/mix/InverseMouseArea.h index 52943bfad..893c7b9c6 100644 --- a/mix/InverseMouseArea.h +++ b/mix/InverseMouseArea.h @@ -41,9 +41,9 @@ public: void setActive(bool _v); protected: - void itemChange(ItemChange _c, const ItemChangeData& _v); - bool eventFilter(QObject* _obj, QEvent *_ev); - bool contains(const QPoint& _point) const; + void itemChange(ItemChange _c, const ItemChangeData& _v) override; + bool eventFilter(QObject* _obj, QEvent *_ev) override; + bool contains(const QPointF& _point) const override; private: bool m_active;