From fd7396d8a082293b741c6b3be7213dd68b29b740 Mon Sep 17 00:00:00 2001 From: dorian Date: Sat, 16 Feb 2019 17:59:42 +0100 Subject: [PATCH] removed Terms of Use dialog, as the user agrees to them on registration now. --- qml/Forms/HomeForm.qml | 43 +++--------------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/qml/Forms/HomeForm.qml b/qml/Forms/HomeForm.qml index 4aababa..d2a678f 100644 --- a/qml/Forms/HomeForm.qml +++ b/qml/Forms/HomeForm.qml @@ -54,7 +54,8 @@ Page { height: mainMenu.buttonHeight onClicked: { - eventConfirmationDialog.openDay( 0 ) + formStack.eventDay = 0 + formStack.push(eventForm) } } @@ -67,47 +68,9 @@ Page { height: mainMenu.buttonHeight onClicked: { - eventConfirmationDialog.openDay( 1 ) - } - } - - Dialog { - property string day - id: eventConfirmationDialog - - modal: true - focus: true - - title: "Bedingung" - - x: (app.width - eventConfirmationDialog.width) / 2 - y: (app.height - eventConfirmationDialog.height) / 2 - parent: Overlay.overlay - width: Math.min(root.width, root.height) / 3 * 2 - contentHeight: aboutColumn.height - standardButtons: Dialog.Ok | Dialog.Cancel - - onAccepted: { - formStack.eventDay = day + formStack.eventDay = 0 formStack.push(eventForm) } - - Column { - id: aboutColumn - spacing: 20 - Label { - id: text - visible: true - width: eventConfirmationDialog.availableWidth - wrapMode: Label.Wrap - text: "Vertretungsplan, vertraulich, nur zum persönlichen Gebrauch, keine Speicherung!" - } - } - - function openDay(day){ - eventConfirmationDialog.day = day - eventConfirmationDialog.open() - } } }