aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlbinding_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-03-04 14:54:54 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-04-03 12:35:23 +0200
commit448b2a5d838d082c66ab649cc7b71c31761bf409 (patch)
tree17888b90b9e03eb52e2ba03611146a66a87e31a1 /src/qml/qml/qqmlbinding_p.h
parentf1fd2b982a2ceae92da9b4a3875c65ed8a49560d (diff)
Replace QFlagPointer with QTaggedPointer
The latter has the advantage of allowing the use of a real type for the tag, instead of the generic flag/flag2 boolean accessors. Change-Id: Icc9e854ce4af3eb5808a4bed45aa22f377e223da Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlbinding_p.h')
-rw-r--r--src/qml/qml/qqmlbinding_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlbinding_p.h b/src/qml/qml/qqmlbinding_p.h
index 8aeb87df1f..bf73c24c9e 100644
--- a/src/qml/qml/qqmlbinding_p.h
+++ b/src/qml/qml/qqmlbinding_p.h
@@ -153,22 +153,22 @@ private:
bool QQmlBinding::updatingFlag() const
{
- return m_target.flag();
+ return m_target.tag().testFlag(UpdatingBinding);
}
void QQmlBinding::setUpdatingFlag(bool v)
{
- m_target.setFlagValue(v);
+ m_target.setTag(m_target.tag().setFlag(UpdatingBinding, v));
}
bool QQmlBinding::enabledFlag() const
{
- return m_target.flag2();
+ return m_target.tag().testFlag(BindingEnabled);
}
void QQmlBinding::setEnabledFlag(bool v)
{
- m_target.setFlag2Value(v);
+ m_target.setTag(m_target.tag().setFlag(BindingEnabled, v));
}
QT_END_NAMESPACE