diff options
author | Mike Krus <mike.krus@kdab.com> | 2018-03-10 17:42:47 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2018-03-16 08:18:35 +0000 |
commit | 42788e0c54e994609bcab1cf757b38a86b815f5a (patch) | |
tree | 3cee86ed5c260a1f35b03826852cd2f45bed6c79 /src/render/texture | |
parent | d6f62cc4ca72ee97711b47425fbcda988a8de83e (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.cpp | 4 |
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; |