diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2015-07-20 14:21:08 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2015-07-21 09:00:57 +0000 |
commit | 96c35a84d30b5b5cdf8feac4959891ad0bfed6a8 (patch) | |
tree | 1d52c558c46d200b871385e274655c583a15dbf8 /tests/auto/qml/qqmlproperty/data | |
parent | 2c2eb24975bbf5c698d4d23c6a5060729339d9f3 (diff) |
fix readonly metaproperties (revealed by compiler warning)
Found thanks to -Wparentheses + gcc 5.1
Change-Id: Iad784a26d268b85f7c67623fd63f0b097a9f29f9
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data')
-rw-r--r-- | tests/auto/qml/qqmlproperty/data/readonlyPrimitiveVsVar.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/readonlyPrimitiveVsVar.qml b/tests/auto/qml/qqmlproperty/data/readonlyPrimitiveVsVar.qml new file mode 100644 index 0000000000..253d61d1da --- /dev/null +++ b/tests/auto/qml/qqmlproperty/data/readonlyPrimitiveVsVar.qml @@ -0,0 +1,8 @@ +import QtQuick 2.0 + +QtObject { + readonly property var r_var: 1; + readonly property int r_int: 1; + property var w_var: 1; + property int w_int: 1; +} |