summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-10-11 13:58:53 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-10-12 13:01:49 +0200
commit75b8c4d75e03b976a35b55099646a54ddbe117f5 (patch)
tree75029415749438d567474f911ed13655e7b74115
parented460ba7e230072bd3c78d97f6361059aa82d8f7 (diff)
QPropertyBinding: compare QMetaType directly
Change-Id: I36fbc8ebed096aa6f7be48456005395b65229359 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--src/corelib/kernel/qproperty_p.h2
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;