aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_roundbutton.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_roundbutton.qml b/tests/auto/controls/data/tst_roundbutton.qml
index aa956776..cc593131 100644
--- a/tests/auto/controls/data/tst_roundbutton.qml
+++ b/tests/auto/controls/data/tst_roundbutton.qml
@@ -56,7 +56,7 @@ TestCase {
}
function test_radius() {
- var control = roundButton.createObject(testCase);
+ var control = createTemporaryObject(roundButton, testCase);
verify(control);
var implicitRadius = control.radius;
@@ -73,7 +73,5 @@ TestCase {
control.width = 10;
compare(control.radius, 5);
-
- control.destroy();
}
}