OSDN Git Service

QmlDesigner.metaInfo: fix for enums
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 28 Mar 2011 12:27:18 +0000 (14:27 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 28 Mar 2011 12:27:47 +0000 (14:27 +0200)
Non existing properties are not enums.
Fixes some rewriting errors in combination with
PropertyChanges.

Reviewed-by: Kai Koehne
src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp

index f5a96f3..906b919 100644 (file)
@@ -599,7 +599,7 @@ bool NodeMetaInfoPrivate::isPropertyEnum(const QString &propertyName) const
         if (objectInfo->isValid())
             return objectInfo->isPropertyEnum(rawPropertyName);
         else
-            return true;
+            return false;
     }
 
     QList<const Interpreter::ObjectValue *> objects;