working highlightBar

This commit is contained in:
Chris Cochrun 2023-03-12 06:30:47 -05:00
parent 38bfec602a
commit e2e44f1c3c
2 changed files with 23 additions and 17 deletions

View file

@ -48,8 +48,9 @@ Item {
id: slidesTitle
width: previewHighlight.width
anchors.top: previewHighlight.bottom
/* anchors.leftMargin: Kirigami.Units.smallSpacing * 8 */
anchors.topMargin: Kirigami.Units.smallSpacing * 3
anchors.left: previewHighlight.left
anchors.topMargin: Kirigami.Units.smallSpacing
anchors.leftMargin: Kirigami.Units.smallSpacing
elide: Text.ElideRight
text: ServiceItemModel.getItem(serviceItemId).name
font.bold: true
@ -74,7 +75,7 @@ Item {
function onDataChanged() {
if (active) {
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Contain);
previewSlidesList.positionViewAtIndex(index, ListView.Center);
}
}
}