aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2012-02-13 16:16:42 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-13 10:27:31 +0100
commita42e203f93adfec249145ee125f34b311b9a969c (patch)
tree356a4b8d6d4e8a6ab9719feaa592a89e92f272f1 /src/imports
parent815b4b463da83802f535b328d7ef699aea529a6b (diff)
Change variant properties to var properties.
Helps with the use of js objects in test data etc. Change-Id: I95661118a8ded277c0e1d3c951182dee3f550e12 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/testlib/SignalSpy.qml4
-rw-r--r--src/imports/testlib/TestCase.qml6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/testlib/SignalSpy.qml b/src/imports/testlib/SignalSpy.qml
index f71f4bfe7c..8b74132806 100644
--- a/src/imports/testlib/SignalSpy.qml
+++ b/src/imports/testlib/SignalSpy.qml
@@ -52,7 +52,7 @@ Item {
// Public API.
- property variant target: null
+ property var target: null
property string signalName: ""
property int count: 0
@@ -86,7 +86,7 @@ Item {
qtest_update()
}
- property variant qtest_prevTarget: null
+ property var qtest_prevTarget: null
property string qtest_prevSignalName: ""
property int qtest_expectedCount: 0
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml
index 1f96f28533..0433483cfd 100644
--- a/src/imports/testlib/TestCase.qml
+++ b/src/imports/testlib/TestCase.qml
@@ -75,10 +75,10 @@ Item {
property bool qtest_prevWhen: true
property int qtest_testId: -1
property bool qtest_componentCompleted : false
- property variant qtest_testCaseResult
- property variant qtest_results: qtest_results_normal
+ property var qtest_testCaseResult
+ property var qtest_results: qtest_results_normal
TestResult { id: qtest_results_normal }
- property variant qtest_events: qtest_events_normal
+ property var qtest_events: qtest_events_normal
TestEvent { id: qtest_events_normal }
function fail(msg) {