Add support for explicitly marking a property as dirty
When a binding is backed by old-style property captures, then having this API is needed for Qml. Change-Id: Icf51efe057eaf845969ed2cda52d082dedde677e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
1fcce51053
commit
58992993a3
@ -137,6 +137,8 @@ public:
|
|||||||
|
|
||||||
QMetaType valueMetaType() const;
|
QMetaType valueMetaType() const;
|
||||||
|
|
||||||
|
void setDirty(bool dirty = true);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit QUntypedPropertyBinding(const QPropertyBindingPrivatePtr &priv);
|
explicit QUntypedPropertyBinding(const QPropertyBindingPrivatePtr &priv);
|
||||||
friend class QtPrivate::QPropertyBase;
|
friend class QtPrivate::QPropertyBase;
|
||||||
|
@ -162,4 +162,11 @@ QMetaType QUntypedPropertyBinding::valueMetaType() const
|
|||||||
return d->metaType;
|
return d->metaType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QUntypedPropertyBinding::setDirty(bool dirty)
|
||||||
|
{
|
||||||
|
if (!d)
|
||||||
|
return;
|
||||||
|
d->dirty = dirty;
|
||||||
|
}
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
Loading…
Reference in New Issue
Block a user