aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-05-25 10:52:09 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2022-06-03 08:46:10 +0200
commit6ced46e4222a10074b8ac544a992b040ee53ea35 (patch)
tree016cd16f2ec66496fab35b69cd5abfeb3dc29a02 /tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml
parent7dba66ab707b74458fe8c9f3422c42d2ff733040 (diff)
Rename tst_qmltc_{no}diskcache data folder to QmltcTests
Follow the policy of "good" QML modules where the module would reside in a folder named the same way as the module URI Somehow this is still not enough to remove an explicit "-i <own qmldir>" workaround in qmltc compilation command Change-Id: If1725ec03baf3690bb6cb8fc7876b082a155eaa2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml')
-rw-r--r--tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml96
1 files changed, 96 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml b/tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml
new file mode 100644
index 0000000000..5936be96bd
--- /dev/null
+++ b/tests/auto/qml/qmltc/QmltcTests/documentWithIds.qml
@@ -0,0 +1,96 @@
+import QtQuick
+
+Item {
+ property QtObject rectProperty: Rectangle {
+ id: rectangle
+ objectName: "rectangle"
+ }
+
+ Row {
+ id: row
+ objectName: "row"
+
+ Rectangle {
+ Text {
+ id: textInRectangle
+ objectName: "textInRectangle"
+ }
+ }
+
+ property list<QtObject> listOfObjects: [
+ Item {
+ id: itemInList
+ objectName: "itemInList"
+
+ property QtObject foobarProperty: QtObject { id: foobar; objectName: "foobar" }
+ },
+ QtObject {
+ id: objectInList
+ objectName: "objectInList"
+ }
+ ]
+
+ Item {
+ id: item
+ objectName: "item"
+ }
+ }
+
+ property QtObject gridProperty: GridView {
+ id: gridView
+ objectName: "gridView"
+ }
+
+ TableView {
+ id: tableView
+ objectName: "tableView"
+
+ property Component before: Component {
+ id: beforeDelegate
+ Text {
+ id: beforeDelegateText
+ objectName: "beforeDelegateText"
+ }
+ }
+ Component {
+ id: beforeDelegateDefaultProperty
+ Text {
+ id: beforeDelegateDefaultPropertyText
+ objectName: "beforeDelegateDefaultPropertyText"
+ }
+ }
+
+ delegate: Rectangle {
+ id: delegateRect
+ objectName: "delegateRect"
+ }
+
+ Component {
+ id: afterDelegateDefaultProperty
+ Text {
+ id: afterDelegateDefaultPropertyText
+ objectName: "afterDelegateDefaultPropertyText"
+ }
+ }
+ property Component after: Component {
+ id: afterDelegate
+ Text {
+ id: afterDelegateText
+ objectName: "afterDelegateText"
+ }
+ }
+ }
+
+ property QtObject explicitCompProperty: Component {
+ id: explicitComponent
+ Text {
+ id: explicitText
+ objectName: "explicitText"
+ }
+ }
+
+ property QtObject sentinelProperty: QtObject {
+ id: sentinel
+ objectName: "sentinel"
+ }
+}