Patch https://codereview.qt-project.org/#change,77446 applied.