summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2013-03-12 13:06:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-15 09:28:11 +0100
commit39c9b58fc7a383fc429d5040c1a9e99157dfae14 (patch)
tree346759bee227cfb661c0ad6ac8b6ab34ec249c9b /src
parentb528e1324add2208abf8f83fb51a8bd2183157f5 (diff)
Make sure QGLWidget::setContext() is correctly documented as obsolete.
Task-number: QTBUG-30017 Change-Id: Idf3c943d7aaad294cbf6858cca1c01e841e94b7d Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/opengl/qgl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 6476e2b26c..71f1bd2b54 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3786,7 +3786,7 @@ void QGLWidget::setFormat(const QGLFormat &format)
attributes that were requested.
*/
-/*
+/*!
\fn void QGLWidget::setContext(QGLContext *context,
const QGLContext* shareContext,
bool deleteOldContext)
@@ -3812,6 +3812,12 @@ void QGLWidget::setFormat(const QGLFormat &format)
to the old context (as returned by context()), and want to restore
that context later.
+ \note This function is obsolete and should no longer be used. If you were
+ using it to recreate the context for a QGLWidget, you should instead create a
+ new QGLWidget or use the QOpenGLContext API in conjunction with QWindow.
+ There is currently no officially supported way to substitute QGLWidget's
+ context with your own implementation of QGLContext.
+
\sa context(), isSharing()
*/