summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qmemorybarrier.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-10-21 11:19:02 +0200
committerPaul Lemire <paul.lemire@kdab.com>2017-01-25 07:32:37 +0000
commitbdaf8742dd6fd21e068c3e9283682cb1f2811370 (patch)
treec1fec48d94ded4ff7115bd56b95c5e47ec0478a2 /src/render/framegraph/qmemorybarrier.cpp
parent9890652bd50e715603c594d8892582a39f924f8b (diff)
Add Quick3DMemoryBarrier
Needed to work around the fact that QFlags aren't supported as a QML property type. And modify QMemoryBarrier to work with it -> remove the Q_PROPERTY from QMemoryBarrier (it's in QUick3DMemoryBarrier) -> properly send the notification change (since there's no Q_PROPERTY) -> adjust AllBarriers values so that we can use QFlags &= to set it (|= not available with ints) Change-Id: Ide5b1c774fbbb1df745857b78ca353038b3cc052 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/framegraph/qmemorybarrier.cpp')
-rw-r--r--src/render/framegraph/qmemorybarrier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/framegraph/qmemorybarrier.cpp b/src/render/framegraph/qmemorybarrier.cpp
index d9d86ce99..9aa3ba560 100644
--- a/src/render/framegraph/qmemorybarrier.cpp
+++ b/src/render/framegraph/qmemorybarrier.cpp
@@ -139,6 +139,7 @@ void QMemoryBarrier::setBarrierTypes(QMemoryBarrier::BarrierTypes barrierTypes)
if (barrierTypes != d->m_barrierTypes) {
d->m_barrierTypes = barrierTypes;
emit barrierTypesChanged(barrierTypes);
+ d->notifyPropertyChange("barrierTypes", QVariant::fromValue(barrierTypes));
}
}