summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-08-03 06:27:11 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-08-03 06:27:11 (GMT)
commitfa43180a3aab3b7bf2ad2b89b2cc1aed643d7b72 (patch)
tree7d97cca938772b6068c623dc926c212335366e7a /src
parent0f9d9d34358796aca454d9eec07332260bc54332 (diff)
downloadQt-fa43180a3aab3b7bf2ad2b89b2cc1aed643d7b72.zip
Qt-fa43180a3aab3b7bf2ad2b89b2cc1aed643d7b72.tar.gz
Qt-fa43180a3aab3b7bf2ad2b89b2cc1aed643d7b72.tar.bz2
Shortcut testing for internal QVariant types
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qmlmetaproperty.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp
index e6ffd50..5181f12 100644
--- a/src/declarative/qml/qmlmetaproperty.cpp
+++ b/src/declarative/qml/qmlmetaproperty.cpp
@@ -287,6 +287,8 @@ QmlMetaPropertyPrivate::propertyCategory() const
int type = propertyType();
if (type == QmlMetaProperty::Invalid)
category = QmlMetaProperty::InvalidProperty;
+ else if (type < QVariant::UserType)
+ category = QmlMetaProperty::Normal;
else if (type == qMetaTypeId<QmlBinding *>())
category = QmlMetaProperty::Bindable;
else if (QmlMetaType::isList(type))