StopperItem fertig, wird aber noch nicht in berechnung einbezogen
git-svn-id: http://svn.lsim.tuxzone.org/trunk@20 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -201,3 +201,14 @@ void HomoBFieldItem::wheelEvent ( QGraphicsSceneWheelEvent * event )
|
||||
{
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
bool HomoBFieldItem::contains(const QPointF point) {
|
||||
mapFromScene (point);
|
||||
return (
|
||||
(point.x() <= boundingRect().width()) &&
|
||||
(point.y() <= boundingRect().height()) &&
|
||||
(point.y() >=0) &&
|
||||
(point.x() >=0)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user