aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativescript_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-10-26 15:04:58 +0100
committerQt by Nokia <qt-info@nokia.com>2011-10-26 18:38:40 +0200
commitb79ceabb43427ba73fb0d64bd24f46c44e6a9d8d (patch)
treec15e0907029d996cbee83735c3e5bd382ee2a6f9 /src/declarative/qml/qdeclarativescript_p.h
parenta927dc97844fd23e295387f8174367f3f4be2977 (diff)
Readonly QML property support
Task-number: QTBUG-15257 Change-Id: I539b6e6a9e0e0172b68e8002aaa3f7c7e6648769 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativescript_p.h')
-rw-r--r--src/declarative/qml/qdeclarativescript_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativescript_p.h b/src/declarative/qml/qdeclarativescript_p.h
index dbf94b265c..a83cd9f8f0 100644
--- a/src/declarative/qml/qdeclarativescript_p.h
+++ b/src/declarative/qml/qdeclarativescript_p.h
@@ -279,6 +279,8 @@ public:
// True if this property is a property alias. Set by the
// QDeclarativeCompiler
bool isAlias;
+ // True if this is a readonly property declaration
+ bool isReadOnlyDeclaration;
// Used for scriptStringProperties
int scriptStringScope;
@@ -388,7 +390,9 @@ public:
enum Type { Var, Variant, Int, Bool, Real, String, Url, Color,
Time, Date, DateTime, Alias, Custom, CustomList };
- bool isDefaultProperty;
+ quint32 isDefaultProperty:1;
+ quint32 isReadOnly:1;
+
Type type;
QHashedStringRef customType;