summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-08-05 16:59:26 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-08-06 14:37:13 +0200
commit53b781cb120d1f6f70746e065c9b7fb64123e874 (patch)
tree73fe98a65d82d41cf6458b45edd6118bd25bd704 /src/gui
parented9d1ef082079e44f3a4307c6dde0e2e5c11889b (diff)
Document the destroy/create behavior of QOpenGLContext::create()
This is not obvious since in some other classes with similar design subsequent create() calls are ignored. In some others it results in a warning. In case of QOpenGLContext it leads to recreating. Therefore it must be documented. Change-Id: I16efa73ebae15b3ffc26832d8d5cc2cd5d0ed469 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qopenglcontext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index 8e848f90ae..f6273fc6dd 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -593,6 +593,9 @@ QVariant QOpenGLContext::nativeHandle() const
Returns \c true if the native context was successfully created and is ready to
be used with makeCurrent(), swapBuffers(), etc.
+ \note If the context is already created, this function will first call
+ destroy(), and then create a new OpenGL context.
+
\sa makeCurrent(), destroy(), format()
*/
bool QOpenGLContext::create()