Add an error signal to QQuickWindow
authorLaszlo Agocs <laszlo.agocs@digia.com>
Thu, 20 Feb 2014 15:14:45 +0000 (16:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 15:29:07 +0000 (16:29 +0100)
commitbbf1ec42e5875a6e8145211348e509690a30d0a5
treeb2a50ccea52dcff9bb5e13e3ffad914eed45ff2f
parent3eb56ecb7776fa106d1fb6e43355e2c1bf5c1d0c
Add an error signal to QQuickWindow

When nothing is connected to this signal, an error will be printed or,
in case of Windows, a message box will be shown. If there is something
connected, it is up to the application to handle the error.

[ChangeLog] Added a new sceneGraphError() signal to QQuickWindow
which applications can use to detect errors like OpenGL context creation
failures and react in their own custom ways.

Task-number: QTBUG-36138
Change-Id: I33b1e5e0e3f25872af67c5bb5ae937e3470b25f3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow.h
src/quick/items/qquickwindow_p.h
src/quick/quick.pro
src/quick/scenegraph/qsgrenderloop.cpp
src/quick/scenegraph/qsgthreadedrenderloop.cpp
src/quick/scenegraph/qsgwindowsrenderloop.cpp