52 lines
846 B
QML
52 lines
846 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import EVChargerApp
|
|
|
|
ColumnLayout {
|
|
signal connected
|
|
|
|
required property DeviceConnection deviceConnection
|
|
|
|
function backPressed() {
|
|
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
|
|
|
|
delegate: Text {
|
|
text: message
|
|
}
|
|
|
|
onCountChanged: positionViewAtEnd()
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("Cancel")
|
|
|
|
onClicked: stackView.pop()
|
|
}
|
|
}
|