on xenial help sign in
Fix a missing finish() method
commitefc5d2202605460eee33ca18adc6e833a85ad76b authorMichael Terry <michael.terry@canonical.com> dateTue 6 Jan 2015, 14:49 (12 years ago) parent5bd1a67
2 files changed+7−1
qml/Tutorial/Tutorial.qml+6 tests/qmltests/Tutorial/tst_Tutorial.qml+1−1
qml/Tutorial/Tutorial.qml+6
@@ -34,6 +34,12 @@ Item {
3434 readonly property bool panelContentEnabled: loader.item ? loader.item.panelContentEnabled : true
3535 readonly property bool running: loader.item ? loader.item.running : false
3636
37+ function finish() {
38+ if (loader.item) {
39+ loader.item.finish();
40+ }
41+ }
42+
3743 signal finished()
3844
3945 Loader {
tests/qmltests/Tutorial/tst_Tutorial.qml+1−1
@@ -229,7 +229,7 @@ Item {
229229 // Make sure we don't do anything if we don't pull the launcher
230230 // out much.
231231 var launcher = findChild(shell, "launcher");
232− touchFlick(shell, 0, halfHeight, launcher.panelWidth * 0.6, halfHeight);
232+ touchFlick(shell, 0, halfHeight, launcher.panelWidth * 0.4, halfHeight);
233233 tryCompare(launcher, "state", ""); // should remain hidden
234234 tryCompare(left, "shown", true); // and we should still be on left
235235