diff --git a/src/qml/main.qml b/src/qml/main.qml index f343eec..012b219 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -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() } } diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index 3256730..532e2c7 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -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) {