diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-11 11:26:41 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-11 11:26:41 (GMT) |
commit | c304667ae5364905e239c378a32d068ce5d6f8c9 (patch) | |
tree | e8b04cc3955c89c5519588926f77467320da91fa | |
parent | b2ba70b372c4e365f4ffe72d310535dcac2af066 (diff) | |
parent | c7b8fdf5d866b5202dada00ba175606807f69fca (diff) | |
download | Qt-c304667ae5364905e239c378a32d068ce5d6f8c9.zip Qt-c304667ae5364905e239c378a32d068ce5d6f8c9.tar.gz Qt-c304667ae5364905e239c378a32d068ce5d6f8c9.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging:
Don't leak MouseEvents
-rw-r--r-- | src/gui/widgets/qlinecontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp index 84674a5..b6e2f90 100644 --- a/src/gui/widgets/qlinecontrol.cpp +++ b/src/gui/widgets/qlinecontrol.cpp @@ -1442,9 +1442,9 @@ bool QLineControl::processEvent(QEvent* ev) case QEvent::GraphicsSceneMouseRelease: case QEvent::GraphicsSceneMousePress:{ QGraphicsSceneMouseEvent *gvEv = static_cast<QGraphicsSceneMouseEvent*>(ev); - QMouseEvent* mouse = new QMouseEvent(ev->type(), + QMouseEvent mouse(ev->type(), gvEv->pos().toPoint(), gvEv->button(), gvEv->buttons(), gvEv->modifiers()); - processMouseEvent(mouse); break; + processMouseEvent(&mouse); break; } #endif case QEvent::MouseButtonPress: |