aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/methods.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/methods.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/methods.qml')
-rw-r--r--tests/auto/qml/qmltc/QmltcTests/methods.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltc/QmltcTests/methods.qml b/tests/auto/qml/qmltc/QmltcTests/methods.qml
new file mode 100644
index 0000000000..2ee128af92
--- /dev/null
+++ b/tests/auto/qml/qmltc/QmltcTests/methods.qml
@@ -0,0 +1,18 @@
+import QtQml
+QtObject {
+ signal justSignal()
+ signal typedSignal(string a, QtObject b, real c)
+
+ function justMethod() {
+ console.log("justMethod()");
+ }
+
+ function untypedMethod(d, c) {
+ console.log("methodWithParams, d = " + d + ", c = " + c);
+ }
+
+ function typedMethod(a: real, b: int): string {
+ console.log("typedMethod, a = " + a + ", b = " + b);
+ return a + b;
+ }
+}