Files
evcharger-app/ConnectingScreen.qml
T

51 lines
846 B
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
2024-07-09 21:47:02 +02:00
import EVChargerApp
ColumnLayout {
signal connected
required property DeviceConnection deviceConnection
function backPressed() {
2024-07-12 22:21:41 +02:00
return false
}
Connections {
target: deviceConnection
function onFullStatusReceived() {
connected()
}
}
Text {
text: qsTr("Trying to reach device...")
}
BusyIndicator {
Layout.fillWidth: true
running: true
}
ListView {
Layout.fillWidth: true
Layout.fillHeight: true
model: collectedMessages
clip: true
2024-07-10 22:25:27 +02:00
delegate: Text {
text: message
}
onCountChanged: positionViewAtEnd()
}
Button {
text: qsTr("Cancel")
2024-07-12 22:21:41 +02:00
onClicked: stackView.pop()
}
}