Files
evcharger-app/ControllerTabPage.qml
T

137 lines
3.4 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import EVChargerApp
AnimatedStackView {
id: stackView
signal closeRequested()
function backPressed() {
if (depth > 1) {
pop()
return true
}
return false
}
initialItem: ColumnLayout {
DeviceHeaderBar {
Layout.fillWidth: true
onCloseRequested: stackView.closeRequested()
}
Flickable {
id: flickable
Layout.fillWidth: true
Layout.fillHeight: true
contentHeight: columnLayout.implicitHeight
clip: true
ColumnLayout {
id: columnLayout
width: flickable.width - 30
x: 15
spacing: 5
RowLayout {
Layout.fillWidth: true
ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Text {
Layout.fillWidth: true
width: 100
text: qsTr("Connected")
font.pixelSize: 20
font.bold: true
wrapMode: Text.Wrap
}
}
Image {
Layout.preferredWidth: parent.width / 3
Layout.preferredHeight: paintedHeight
fillMode: Image.PreserveAspectFit
source: "images/controller.png"
}
}
WhiteBox {
Layout.fillWidth: true
Layout.preferredHeight: gridLayout.implicitHeight + 20
GridLayout {
id: gridLayout
anchors.fill: parent
columns: 3
Repeater {
model: 9
Pane {
Layout.fillWidth: true
Layout.preferredHeight: 50
Component.onCompleted: {
background.color = "grey"
background.radius = 5
}
Text {
anchors.fill: parent
text: qsTr("Category")
}
}
}
}
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
Text {
Layout.fillWidth: true
text: "Controller TODO"
}
}
}
}
}