From a5af8ab70d67f74811bb932ab2ed7459eb3e0f8e Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Fri, 26 Jun 2009 11:25:57 +0200 Subject: Compile --- src/gui/graphicsview/qgraphicsview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 3f9e823..a2adf82 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -612,7 +612,7 @@ void QGraphicsViewPrivate::mouseMoveEventHandler(QMouseEvent *event) lastMouseMoveScenePoint = mouseEvent.scenePos(); lastMouseMoveScreenPoint = mouseEvent.screenPos(); mouseEvent.setAccepted(false); - if (event->isSpontaneous()) + if (event->spontaneous()) qt_sendSpontaneousEvent(scene, &mouseEvent); else QApplication::sendEvent(scene, &mouseEvent); @@ -3028,10 +3028,10 @@ void QGraphicsView::mouseDoubleClickEvent(QMouseEvent *event) mouseEvent.setAccepted(false); mouseEvent.setButton(event->button()); mouseEvent.setModifiers(event->modifiers()); - if (event->isSpontaneous()) - qt_sendSpontaneousEvent(scene, &mouseEvent); + if (event->spontaneous()) + qt_sendSpontaneousEvent(d->scene, &mouseEvent); else - QApplication::sendEvent(scene, &mouseEvent); + QApplication::sendEvent(d->scene, &mouseEvent); } /*! @@ -3070,10 +3070,10 @@ void QGraphicsView::mousePressEvent(QMouseEvent *event) mouseEvent.setButton(event->button()); mouseEvent.setModifiers(event->modifiers()); mouseEvent.setAccepted(false); - if (event->isSpontaneous()) - qt_sendSpontaneousEvent(scene, &mouseEvent); + if (event->spontaneous()) + qt_sendSpontaneousEvent(d->scene, &mouseEvent); else - QApplication::sendEvent(scene, &mouseEvent); + QApplication::sendEvent(d->scene, &mouseEvent); // Update the original mouse event accepted state. bool isAccepted = mouseEvent.isAccepted(); @@ -3243,10 +3243,10 @@ void QGraphicsView::mouseReleaseEvent(QMouseEvent *event) mouseEvent.setButton(event->button()); mouseEvent.setModifiers(event->modifiers()); mouseEvent.setAccepted(false); - if (event->isSpontaneous()) - qt_sendSpontaneousEvent(scene, &mouseEvent); + if (event->spontaneous()) + qt_sendSpontaneousEvent(d->scene, &mouseEvent); else - QApplication::sendEvent(scene, &mouseEvent); + QApplication::sendEvent(d->scene, &mouseEvent); // Update the last mouse event selected state. d->lastMouseEvent.setAccepted(mouseEvent.isAccepted()); -- cgit v0.12