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:
parent
090acf35d1
commit
a49bf6fc6a
@ -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.
|
target maintenance.
|
||||||
|
|
||||||
By default the value is \c true.
|
By default the value is \c true.
|
||||||
|
|
||||||
\sa setAutoRenderTarget()
|
|
||||||
*/
|
*/
|
||||||
bool QRhiWidget::isAutoRenderTargetEnabled() const
|
bool QRhiWidget::isAutoRenderTargetEnabled() const
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,7 @@ class Q_WIDGETS_EXPORT QRhiWidget : public QWidget
|
|||||||
Q_PROPERTY(TextureFormat colorBufferFormat READ colorBufferFormat WRITE setColorBufferFormat NOTIFY colorBufferFormatChanged)
|
Q_PROPERTY(TextureFormat colorBufferFormat READ colorBufferFormat WRITE setColorBufferFormat NOTIFY colorBufferFormatChanged)
|
||||||
Q_PROPERTY(QSize fixedColorBufferSize READ fixedColorBufferSize WRITE setFixedColorBufferSize NOTIFY fixedColorBufferSizeChanged)
|
Q_PROPERTY(QSize fixedColorBufferSize READ fixedColorBufferSize WRITE setFixedColorBufferSize NOTIFY fixedColorBufferSizeChanged)
|
||||||
Q_PROPERTY(bool mirrorVertically READ isMirrorVerticallyEnabled WRITE setMirrorVertically NOTIFY mirrorVerticallyChanged)
|
Q_PROPERTY(bool mirrorVertically READ isMirrorVerticallyEnabled WRITE setMirrorVertically NOTIFY mirrorVerticallyChanged)
|
||||||
|
QDOC_PROPERTY(bool autoRenderTarget READ isAutoRenderTargetEnabled WRITE setAutoRenderTarget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QRhiWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {});
|
explicit QRhiWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user