diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-10-11 13:58:53 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-10-12 13:01:49 +0200 |
commit | 75b8c4d75e03b976a35b55099646a54ddbe117f5 (patch) | |
tree | 75029415749438d567474f911ed13655e7b74115 /src/corelib/kernel | |
parent | ed460ba7e230072bd3c78d97f6361059aa82d8f7 (diff) |
QPropertyBinding: compare QMetaType directly
Change-Id: I36fbc8ebed096aa6f7be48456005395b65229359
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qproperty_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 1193e3e1d2..e9a7a7f198 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -422,7 +422,7 @@ public: bool setBinding(const QUntypedPropertyBinding &newBinding) { - if (!newBinding.isNull() && newBinding.valueMetaType().id() != qMetaTypeId<T>()) + if (!newBinding.isNull() && newBinding.valueMetaType() != QMetaType::fromType<T>()) return false; setBinding(static_cast<const QPropertyBinding<T> &>(newBinding)); return true; |