From a486a5681d536dd8b8871f4055bd634bfa670b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Fri, 19 Jul 2013 08:55:03 +0000 Subject: [PATCH] - replaced deprecated qt4 functions - removed some unnecessary qt headers git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17078 383ad7c9-94d9-4d36-a494-682f7c89f535 --- scene/connectionPoint.cc | 2 +- scene/graphicsScene.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/connectionPoint.cc b/scene/connectionPoint.cc index 8027eb5..30afc29 100644 --- a/scene/connectionPoint.cc +++ b/scene/connectionPoint.cc @@ -85,7 +85,7 @@ ConnectionPoint::ConnectionPoint (ElementInOut *_e, QGraphicsItem *_parent) : setBrush (QColor (64,64,64)); - setAcceptsHoverEvents (true); + setAcceptHoverEvents (true); } //------------------------------------------------------------------------------ diff --git a/scene/graphicsScene.cc b/scene/graphicsScene.cc index 451de90..858c9c1 100644 --- a/scene/graphicsScene.cc +++ b/scene/graphicsScene.cc @@ -372,7 +372,7 @@ void GraphicsScene::mousePressEvent (QGraphicsSceneMouseEvent *_event) QGraphicsScene::mousePressEvent (_event); selectionStart_ = _event->scenePos (); - if (itemAt (selectionStart_) != elementArea_ && !_event->isAccepted ()) + if (itemAt (selectionStart_,QTransform()) != elementArea_ && !_event->isAccepted ()) { if (_event->modifiers () & (Qt::ControlModifier | Qt::ShiftModifier)) setSelectionArea (p); -- GitLab