summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qmlcppcodegen/data/Test.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/Test.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/Test.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/Test.qml b/tests/auto/qml/qmlcppcodegen/data/Test.qml
new file mode 100644
index 0000000000..d7263a2bff
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/Test.qml
@@ -0,0 +1,17 @@
+pragma Strict
+import TestTypes 1.0
+
+CppBaseClass {
+ enum EE {
+ AA, BB, CC
+ }
+
+ property int foo: 1 + 2
+ property int ppp: 4
+
+ // constant, binding will be removed.
+ cppProp: 3 + 4
+
+ // An actual binding. Can't be removed because cppProp may be manually set.
+ cppProp2: cppProp * 2
+}