Move StatusBar into its own file

This commit is contained in:
2023-02-18 15:54:41 +01:00
parent 14f6f83cac
commit 2daafde7f2
3 changed files with 53 additions and 48 deletions

View File

@ -28,56 +28,9 @@ ApplicationWindow {
ColumnLayout {
anchors.fill: parent
Pane {
StatusBar {
Layout.fillWidth: true
Layout.preferredHeight: 75
Material.elevation: 6
z: 999
RowLayout {
anchors.fill: parent
Label {
Layout.fillWidth: true
Layout.fillHeight: true
text: qsTr("Schein-Commander")
fontSizeMode: Text.VerticalFit
minimumPixelSize: 10;
font.pixelSize: 72
}
Label {
id: timeText
Layout.fillWidth: true
Layout.fillHeight: true
text: Qt.formatTime(new Date(), "hh:mm:ss")
fontSizeMode: Text.VerticalFit
minimumPixelSize: 10;
font.pixelSize: 72
Timer {
id: timer
interval: 1000
repeat: true
running: true
onTriggered: timeText.text = Qt.formatTime(new Date(), "hh:mm:ss");
}
}
Button {
Layout.fillHeight: true
text: qsTr("Back")
onClicked: stackview.pop();
enabled: stackview.depth > 1
}
}
}
StackView {