summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-01 13:36:32 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-07 05:48:52 +0000
commit74078c5fc6a0031e5c4ffdabfc1001bc1b154bdc (patch)
tree05f6758e63fe3ef88e5cc9eeaf8f182437e6d004
parentd3edb6562029be5b4e5ee44ad7f9a2a003bdbb44 (diff)
downloadqtbase-74078c5fc6a0031e5c4ffdabfc1001bc1b154bdc.tar.gz
Doc: fix QOpenGLWidget::defaultFramebufferObject documentation
Fix the link to QSurfaceFormat::StereoBuffers, and clean the text up a bit. If everything is a \note, then we might just as well not have notes, so move the statement about when this function is useful out of a note, and combine the statements elaborating on ownership and lifetime of framebuffer and contexts into a single note. Change-Id: I7cb1f9ff78ba760e99d639550130f5c833ad684a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 47df0eb5131a5fc0decd049bd3f9eefeb26276df) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/openglwidgets/qopenglwidget.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/openglwidgets/qopenglwidget.cpp b/src/openglwidgets/qopenglwidget.cpp
index 4d8c181c22..ad2b461f7e 100644
--- a/src/openglwidgets/qopenglwidget.cpp
+++ b/src/openglwidgets/qopenglwidget.cpp
@@ -1358,15 +1358,13 @@ GLuint QOpenGLWidget::defaultFramebufferObject() const
\return The framebuffer object handle of the specified target buffer or
\c 0 if not yet initialized.
- \note Calling this overload only makes sense if \l QSurfaceFormat::StereoBuffer is enabled
- and supported by the hardware. Will return the default buffer if it's not.
+ Calling this overload only makes sense if \l QSurfaceFormat::StereoBuffers is enabled
+ and supported by the hardware. If not, this method will return the default buffer.
\note The framebuffer object belongs to the context returned by context()
- and may not be accessible from other contexts.
-
- \note The context and the framebuffer object used by the widget changes when
- reparenting the widget via setParent(). In addition, the framebuffer object
- changes on each resize.
+ and may not be accessible from other contexts. The context and the framebuffer
+ object used by the widget changes when reparenting the widget via setParent().
+ In addition, the framebuffer object changes on each resize.
\since 6.5