summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;