diff options
author | Liang Qi <liang.qi@qt.io> | 2017-09-05 09:01:22 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-09-05 09:31:34 +0200 |
commit | 2795ac5d5930fa28ea329529c0dd2e515b361531 (patch) | |
tree | 8dd01197f5b71e1eb8e3612b0119764623325803 /src/quick/items/qquickwindow.cpp | |
parent | 8f93d3627a9b76bf77896501129990e33a77f32c (diff) | |
parent | 6ff0e9a65657e8c51a37e63efe8169bb7e3050cc (diff) |
Merge remote-tracking branch 'origin/5.9' into 5.10
Conflicts:
src/quick/items/qquickwindow.cpp
src/quick/scenegraph/qsgrenderloop.cpp
Change-Id: Idd7106995b5545fcac869e9056a365ef9edb36ca
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index 7073c711ee..2d129f0823 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -1244,7 +1244,7 @@ void QQuickWindowPrivate::cleanup(QSGNode *n) \note All classes with QSG prefix should be used solely on the scene graph's rendering thread. See \l {Scene Graph and Rendering} for more information. - \section2 Context and surface formats + \section2 Context and Surface Formats While it is possible to specify a QSurfaceFormat for every QQuickWindow by calling the member function setFormat(), windows may also be created from @@ -1512,8 +1512,7 @@ QQuickItem *QQuickWindow::mouseGrabberItem() const if (d->touchMouseId != -1 && d->touchMouseDevice) { QQuickPointerEvent *event = d->pointerEventInstance(d->touchMouseDevice); auto point = event->pointById(d->touchMouseId); - Q_ASSERT(point); - return point->grabberItem(); + return point ? point->grabberItem() : nullptr; } QQuickPointerEvent *event = d->pointerEventInstance(QQuickPointerDevice::genericMouseDevice()); |