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>
This commit is contained in:
Samuel Rødal 2013-03-12 13:06:12 +01:00 committed by The Qt Project
parent b528e1324a
commit 39c9b58fc7

View File

@ -3786,7 +3786,7 @@ void QGLWidget::setFormat(const QGLFormat &format)
attributes that were requested. attributes that were requested.
*/ */
/* /*!
\fn void QGLWidget::setContext(QGLContext *context, \fn void QGLWidget::setContext(QGLContext *context,
const QGLContext* shareContext, const QGLContext* shareContext,
bool deleteOldContext) bool deleteOldContext)
@ -3812,6 +3812,12 @@ void QGLWidget::setFormat(const QGLFormat &format)
to the old context (as returned by context()), and want to restore to the old context (as returned by context()), and want to restore
that context later. 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() \sa context(), isSharing()
*/ */