make a spot for serviceItem info in the footer
This commit is contained in:
parent
061bf5acb8
commit
455c83b000
2 changed files with 15 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue