make a spot for serviceItem info in the footer

This commit is contained in:
Chris Cochrun 2023-04-18 11:13:49 -05:00
parent 061bf5acb8
commit 455c83b000
2 changed files with 15 additions and 3 deletions

View file

@ -17,8 +17,8 @@ Kirigami.ApplicationWindow {
property bool presenting: false
property var presentationScreen
property var screens
property string activeServiceItem
property bool editMode: false
@ -60,6 +60,12 @@ Kirigami.ApplicationWindow {
}
footer: RowLayout {
Controls.Label {
id: presentingLabel
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: Kirigami.Units.smallSpacing * 2
text: activeServiceItem
}
Controls.TextArea {
id: filePathLabel
Layout.alignment: Qt.AlignLeft
@ -73,6 +79,9 @@ Kirigami.ApplicationWindow {
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
}
}
Item {
Layout.fillWidth: true
}
RowLayout {
id: rightFooterItems
spacing: 10
@ -81,13 +90,11 @@ Kirigami.ApplicationWindow {
Controls.Label {
Layout.alignment: Qt.AlignRight
Layout.rightMargin: Kirigami.Units.smallSpacing * 2
/* elide: Text.ElideLeft */
text: "Total Service Items: " + ServiceItemModel.rowCount()
}
Controls.Label {
Layout.alignment: Qt.AlignRight
Layout.rightMargin: Kirigami.Units.smallSpacing * 2
/* elide: Text.ElideLeft */
text: "Total Slides: " + SlideModel.rowCount()
}
}

View file

@ -533,6 +533,11 @@ Item {
Component.onCompleted: {
/* totalServiceItems = serviceItemList.count; */
console.log("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
activeServiceItem = serviceItemList.model.getItem(serviceItemList.currentIndex).name;
// TODO
// After getting the rust service_item_model setup let's add some properties that we can
// use to find the active serviceItem and other things that will need
// to see some global state of the model.
}
function removeItem(index) {