Move StatusBar into its own file
This commit is contained in:
@ -33,6 +33,7 @@ qt_add_qml_module(applightcontrol
|
|||||||
DevicesSettingsPage.qml
|
DevicesSettingsPage.qml
|
||||||
Vector3DField.qml
|
Vector3DField.qml
|
||||||
DmxSlider.qml
|
DmxSlider.qml
|
||||||
|
StatusBar.qml
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(applightcontrol PROPERTIES
|
set_target_properties(applightcontrol PROPERTIES
|
||||||
|
@ -28,56 +28,9 @@ ApplicationWindow {
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Pane {
|
StatusBar {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 75
|
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 {
|
StackView {
|
||||||
|
51
StatusBar.qml
Normal file
51
StatusBar.qml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls.Material
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
Pane {
|
||||||
|
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 {
|
||||||
|
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: parent.text = Qt.formatTime(new Date(), "hh:mm:ss");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
text: qsTr("Back")
|
||||||
|
|
||||||
|
onClicked: stackview.pop();
|
||||||
|
enabled: stackview.depth > 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user