2023-09-01 10:48:19 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
import QtQuick
|
|
|
|
|
2023-12-20 07:13:15 +00:00
|
|
|
ReadyForm {
|
2025-07-16 13:23:43 +00:00
|
|
|
id: readyForm
|
|
|
|
|
2025-07-16 12:26:59 +00:00
|
|
|
required property ApplicationFlow appFlow
|
|
|
|
|
2023-09-01 10:48:19 +00:00
|
|
|
property alias timer: timer
|
2025-07-16 12:26:59 +00:00
|
|
|
foamAmount: appFlow.foamAmount
|
|
|
|
milkAmount: appFlow.milkAmount
|
|
|
|
coffeeAmount: appFlow.coffeeAmount
|
|
|
|
sugarAmount: appFlow.sugarAmount
|
2025-07-16 14:50:54 +00:00
|
|
|
state: Config.mode
|
2023-09-01 10:48:19 +00:00
|
|
|
|
|
|
|
Timer {
|
|
|
|
id: timer
|
|
|
|
interval: 3000
|
|
|
|
running: true
|
|
|
|
onTriggered: {
|
2025-07-16 13:23:43 +00:00
|
|
|
readyForm.appFlow.onReturnToStart()
|
2023-09-01 10:48:19 +00:00
|
|
|
}
|
|
|
|
}
|
2023-12-20 07:13:15 +00:00
|
|
|
grid.states: [
|
|
|
|
State {
|
|
|
|
name: "small"
|
|
|
|
when: ((Screen.height * Screen.devicePixelRatio)
|
|
|
|
+ (Screen.width * Screen.devicePixelRatio)) < 2000
|
|
|
|
PropertyChanges {
|
|
|
|
target: grid
|
|
|
|
rowSpacing: 10
|
2023-09-01 10:48:19 +00:00
|
|
|
}
|
|
|
|
}
|
2023-12-20 07:13:15 +00:00
|
|
|
]
|
|
|
|
caption.states: [
|
|
|
|
State {
|
|
|
|
name: "small"
|
|
|
|
when: ((Screen.height * Screen.devicePixelRatio)
|
|
|
|
+ (Screen.width * Screen.devicePixelRatio)) < 2000
|
|
|
|
PropertyChanges {
|
|
|
|
target: caption
|
|
|
|
font.pixelSize: 16
|
2023-09-01 10:48:19 +00:00
|
|
|
}
|
|
|
|
}
|
2023-12-20 07:13:15 +00:00
|
|
|
]
|
2023-09-01 10:48:19 +00:00
|
|
|
}
|