aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycache.cpp
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-08-07 10:54:39 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-15 13:19:45 +0200
commit6096f72e8cf23522cf675d6142492c58401e68b0 (patch)
treeaa52faa72c9c18b23e13187b6895db854bbf4108 /src/qml/qml/qqmlpropertycache.cpp
parent203c592de64d4c8078396ed90409f7e0ceb69ed2 (diff)
Remove the use of QWidgetStar from QtQml.
The enum value can be removed so that it can be replaced in functionality with QMetaType::PointerToQObject. There is no advantage to QtDeclarative knowing that a value is a QWidget pointer. Change-Id: I14530132bc37fbb0dc55ba8aaa5bb68db0d87bad Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
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 6b41c7a337..89febc24cb 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -102,7 +102,7 @@ static QQmlPropertyData::Flags flagsForPropertyType(int propType, QQmlEngine *en
QQmlPropertyData::Flags flags;
- if (propType == QMetaType::QObjectStar || propType == QMetaType::QWidgetStar) {
+ if (propType == QMetaType::QObjectStar) {
flags |= QQmlPropertyData::IsQObjectDerived;
} else if (propType == QMetaType::QVariant) {
flags |= QQmlPropertyData::IsQVariant;
@@ -153,7 +153,7 @@ void QQmlPropertyData::lazyLoad(const QMetaProperty &p, QQmlEngine *engine)
flags = fastFlagsForProperty(p);
int type = p.type();
- if (type == QMetaType::QObjectStar || type == QMetaType::QWidgetStar) {
+ if (type == QMetaType::QObjectStar) {
propType = type;
flags |= QQmlPropertyData::IsQObjectDerived;
} else if (type == QMetaType::QVariant) {