summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-05-13 15:24:54 +0200
committerPaul Wicking <paul.wicking@qt.io>2019-05-15 12:24:12 +0000
commita6cf29815ecc3cc9a83dc7dcccff19302cc68c45 (patch)
tree6ba11459ff3871359edb48876d8a69993cb5bae4
parentf24bc0a4596d0b22d61f9f44ef85cd4e02e900c2 (diff)
Doc: Add TextureLoader QML documentation
Task-number: QTBUG-73072 Change-Id: I66da2ab446d34b4385b883d640640263c15ad205 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r--src/render/texture/qtexture.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/render/texture/qtexture.cpp b/src/render/texture/qtexture.cpp
index 029e47817..f8b34451f 100644
--- a/src/render/texture/qtexture.cpp
+++ b/src/render/texture/qtexture.cpp
@@ -1279,6 +1279,13 @@ void QTextureLoaderPrivate::updateGenerator()
\brief Handles the texture loading and setting the texture's properties.
*/
/*!
+ \qmltype TextureLoader
+ \instantiates Qt3DRender::QTextureLoader
+ \inqmlmodule Qt3D.Render
+
+ \brief Handles the texture loading and setting the texture's properties.
+*/
+/*!
* Constructs a new Qt3DRender::QTextureLoader instance with \a parent as parent.
*
* Note that by default, if not contradicted by the file metadata, the loaded texture
@@ -1316,7 +1323,12 @@ QTextureLoader::~QTextureLoader()
/*!
\property QTextureLoader::source
- Returns the current texture source.
+ \brief The current texture source.
+*/
+/*!
+ \qmlproperty url Qt3D.Render::TextureLoader::source
+
+ This property holds the current texture source.
*/
QUrl QTextureLoader::source() const
{
@@ -1368,7 +1380,7 @@ void QTextureLoader::setSource(const QUrl& source)
*/
/*!
- \qmlproperty bool Qt3DRender::QTextureLoader::mirrored
+ \qmlproperty bool Qt3D.Render::TextureLoader::mirrored
This property specifies whether the texture should be mirrored when loaded. This
is a convenience to avoid having to manipulate images to match the origin of