summaryrefslogtreecommitdiffstats
path: root/src/render/texture
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2018-03-10 17:42:47 +0000
committerMike Krus <mike.krus@kdab.com>2018-03-16 08:18:35 +0000
commit42788e0c54e994609bcab1cf757b38a86b815f5a (patch)
tree3cee86ed5c260a1f35b03826852cd2f45bed6c79 /src/render/texture
parentd6f62cc4ca72ee97711b47425fbcda988a8de83e (diff)
Notify texture status changed
Change-Id: Id8ef731d5f80648c19221c1d1b334bd8367188c3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/texture')
-rw-r--r--src/render/texture/qabstracttexture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/texture/qabstracttexture.cpp b/src/render/texture/qabstracttexture.cpp
index 76886f438..c4c693852 100644
--- a/src/render/texture/qabstracttexture.cpp
+++ b/src/render/texture/qabstracttexture.cpp
@@ -939,6 +939,10 @@ void QAbstractTexture::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
bool blocked = blockNotifications(true);
setFormat(static_cast<QAbstractTexture::TextureFormat>(propertyChange->value().toInt()));
blockNotifications(blocked);
+ } else if (propertyChange->propertyName() == QByteArrayLiteral("status")) {
+ bool blocked = blockNotifications(true);
+ setStatus(static_cast<QAbstractTexture::Status>(propertyChange->value().toInt()));
+ blockNotifications(blocked);
}
// TODO handle target changes, it's a CONSTANT property but can be affected by loader
break;