Doc: Use QDOC_PROPERTY for QRhiWidget::autoRenderTarget

`autoRenderTarget` is a private bool that very much looks like it's
used as a Q_PROPERTY. Use QDOC_PROPERTY for it to generate warning-
free documentation.

Change-Id: Ia6255287f139ff23172c4fac96950e1a37eeef83
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
(cherry picked from commit 2fb8c2d5c331b1bc30a54e803e1cd17cf534fc32)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Paul Wicking 2024-02-14 13:55:38 +01:00 committed by Qt Cherry-pick Bot
parent 090acf35d1
commit a49bf6fc6a
2 changed files with 4 additions and 3 deletions

View File

@ -948,12 +948,12 @@ void QRhiWidget::setMirrorVertically(bool enabled)
}
/*!
\return the current setting for automatic depth-stencil buffer and render
\property QRhiWidget::autoRenderTarget
The current setting for automatic depth-stencil buffer and render
target maintenance.
By default the value is \c true.
\sa setAutoRenderTarget()
*/
bool QRhiWidget::isAutoRenderTargetEnabled() const
{

View File

@ -23,6 +23,7 @@ class Q_WIDGETS_EXPORT QRhiWidget : public QWidget
Q_PROPERTY(TextureFormat colorBufferFormat READ colorBufferFormat WRITE setColorBufferFormat NOTIFY colorBufferFormatChanged)
Q_PROPERTY(QSize fixedColorBufferSize READ fixedColorBufferSize WRITE setFixedColorBufferSize NOTIFY fixedColorBufferSizeChanged)
Q_PROPERTY(bool mirrorVertically READ isMirrorVerticallyEnabled WRITE setMirrorVertically NOTIFY mirrorVerticallyChanged)
QDOC_PROPERTY(bool autoRenderTarget READ isAutoRenderTargetEnabled WRITE setAutoRenderTarget)
public:
explicit QRhiWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {});