aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlpropertycache.cpp')
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index f91ba78932..95bdcf13e8 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -929,8 +929,8 @@ static bool passTypeAsInt(int type)
if (type < int(QMetaType::User))
return false;
- // Pointers to QObjects and QGadgets can be handled as they are.
- if (flags & (QMetaType::PointerToQObject | QMetaType::PointerToGadget))
+ // Pointers to QObjects and QGadgets, and QGadgets themselves can be handled as they are.
+ if (flags & (QMetaType::PointerToQObject | QMetaType::PointerToGadget | QMetaType::IsGadget))
return false;
// If it wasn't declared as metatype, better don't touch it.