From 622c9b5cf6069b10d6bbb45cd036e26b760e527a Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Tue, 3 Sep 2019 10:41:44 +0200 Subject: change palm-rejection test to user-itneract Signed-off-by: Maciej Kisielewski --- data/palm_rejection.qml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'data') diff --git a/data/palm_rejection.qml b/data/palm_rejection.qml index 3f93f2a..429f8d8 100644 --- a/data/palm_rejection.qml +++ b/data/palm_rejection.qml @@ -1,7 +1,7 @@ /* * This file is part of Checkbox. * - * Copyright 2018 Canonical Ltd. + * Copyright 2018-2019 Canonical Ltd. * Written by: * Maciej Kisielewski * @@ -20,9 +20,8 @@ import QtQuick 2.5 import QtQuick.Layouts 1.2 import QtQuick.Controls 1.4 -import Plainbox 1.0 -QmlJob { +Item { property var steps: [ ['images/palm-rejection-1.jpg', 2000], ['images/palm-rejection-2.jpg', 500], @@ -61,21 +60,17 @@ QmlJob { text: 'Pass' Layout.fillHeight: true Layout.fillWidth: true - onClicked: testDone({'outcome': 'pass'}) - } - Button { - text: 'Skip' - Layout.fillHeight: true - Layout.fillWidth: true - onClicked: testDone({'outcome': 'skip'}) + onClicked: { + console.log('PASS') + Qt.quit() + } } Button { text: 'Fail' Layout.fillHeight: true Layout.fillWidth: true - onClicked: testDone({'outcome': 'fail'}) + onClicked: Qt.quit() } - } } Timer { -- cgit v1.2.3