diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-28 10:32:00 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-09-29 20:32:42 +0200 |
commit | 04641454beb27f667062dbf79116729f159b0041 (patch) | |
tree | 2664d504dbb17f10792831f6e3b85e31640f3fba /src/corelib/kernel/qpropertyprivate.h | |
parent | 6b4e0c5803b4b8b4396791ba436d9692195993d6 (diff) |
Disable moving of QProperty
The semantics are not very intuitive, and it opens a can of worms
with regards to what should happen with observers that observe
that property.
Change-Id: I6fb00b7693904b968224cc87d098bbd0ea776ba3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qpropertyprivate.h')
-rw-r--r-- | src/corelib/kernel/qpropertyprivate.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index dd344c209a..26877e0315 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -88,12 +88,10 @@ class Q_CORE_EXPORT QPropertyBindingData Q_DISABLE_COPY(QPropertyBindingData) public: QPropertyBindingData() = default; - QPropertyBindingData(QPropertyBindingData &&other, QUntypedPropertyData *propertyDataPtr); + QPropertyBindingData(QPropertyBindingData &&other); QPropertyBindingData &operator=(QPropertyBindingData &&other) = delete; ~QPropertyBindingData(); - void moveAssign(QPropertyBindingData &&other, QUntypedPropertyData *propertyDataPtr); - bool hasBinding() const { return d_ptr & BindingBit; } QUntypedPropertyBinding setBinding(const QUntypedPropertyBinding &newBinding, |