diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-26 09:25:57 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-26 09:25:57 (GMT) |
commit | a5af8ab70d67f74811bb932ab2ed7459eb3e0f8e (patch) | |
tree | a3faf7e3d8a620960dc6f4ea14e3e4d4ee54b845 /src | |
parent | 158596debe424d451cf85aa0cbd6c33d9fd5fe20 (diff) | |
download | Qt-a5af8ab70d67f74811bb932ab2ed7459eb3e0f8e.zip Qt-a5af8ab70d67f74811bb932ab2ed7459eb3e0f8e.tar.gz Qt-a5af8ab70d67f74811bb932ab2ed7459eb3e0f8e.tar.bz2 |
Compile
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 20 |
1 files 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()); |