From 715c610dc32e20dd1f596d32a8cdc5fec699ecad Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 26 Sep 2022 17:20:10 -0500 Subject: [PATCH] adding a basic listview to preview all service items in the model --- src/qml/presenter/Presentation.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index cf64070..4dd548b 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -152,6 +152,32 @@ Item { Layout.columnSpan: 3 } + ListView { + id: previewSlidesList + Layout.fillWidth: true + Layout.fillHeight: true + Layout.columnSpan: 3 + orientation: ListView.Horizontal + + model: serviceItemModel + delegate: Presenter.Slide { + id: previewSlide + implicitWidth: 100 + implicitHeight: width / 16 * 9 + /* Layout.alignment: Qt.AlignCenter */ + textSize: width / 15 + itemType: root.itemType + imageSource: background + videoSource: background + audioSource: audio + chosenFont: font + text: text + pdfIndex: 0 + preview: true + editMode: true + } + } + } Connections {