qt5base-lts/tests/auto
Samuel Rødal 6385a182f0 Added explicit threading API to QtOpenGL.
Since QtOpenGL/QGLContext is implemented in terms of
QtGui/QOpenGLContext which has stricter requirements about how it's
supposed to be used, we need to apply these requirements to QGLContext
as well.

This change adds QGLContext::moveToThread(QThread *) and documents it as
a necessity for making a context current on another thread.

Also introduces QGLPixelbuffer::context() to access the QGLContext of a
pixelbuffer, and made QGLWidget::context() return a non-const
QGLContext, since there's no good reason why it shouldn't, and it leads
to less const_cast clutter.

We could have introduced a backdoor in QOpenGLContext instead, making it
loosen its requirements, but that would have made it harder / impossible
to fully support threaded OpenGL in all the platforms.

Task-number: QTBUG-22560
Change-Id: Ibb6f65f342e7c963e80cc42ab5664c5f1cab30b0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
2012-11-30 18:28:04 +01:00
..
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Fix for leak in QFuture 2012-11-01 16:09:29 +01:00
corelib Fix connecting to a functor with 3 arguments 2012-11-30 01:23:48 +01:00
dbus normalise signal/slot signatures [QtDBus tests] 2012-10-19 00:44:54 +02:00
gui Fixed abbreviations in QWindow::framePos() and QWindow::setFramePos(). 2012-11-27 15:24:31 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Add support for getaddrinfo using MinGW in tst_qhostinfo 2012-11-22 11:39:04 +01:00
opengl Added explicit threading API to QtOpenGL. 2012-11-30 18:28:04 +01:00
other Qt5 updates to the QPainter lancelot autotest 2012-11-09 16:07:44 +01:00
printsupport Only use the user set page margins for custom paper 2012-10-30 12:53:46 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Remove warnings from qtbase. 2012-11-21 18:23:59 +01:00
testlib add a .qmake.conf file which load()s qt_build_config 2012-10-18 17:42:40 +02:00
tools qmake: Test recursive function calls 2012-11-26 14:30:09 +01:00
widgets Style auto tests: kill QWindowsStyle dependencies 2012-11-28 20:54:39 +01:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00