making the PreviewSlideListDelegate show multiple slides
This commit is contained in:
parent
40cb3163e2
commit
cadd031ac6
1 changed files with 11 additions and 10 deletions
|
@ -10,7 +10,7 @@ Item {
|
||||||
// Lets set the outerModelData so we can access that data here.
|
// Lets set the outerModelData so we can access that data here.
|
||||||
property var outerModelData: model;
|
property var outerModelData: model;
|
||||||
|
|
||||||
implicitHeight: Kirigami.Units.gridUnit * 6
|
implicitHeight: Kirigami.Units.gridUnit * 6.25
|
||||||
implicitWidth: {
|
implicitWidth: {
|
||||||
let slides = outerModelData.slideNumber === 0 ? 1 : outerModelData.slideNumber
|
let slides = outerModelData.slideNumber === 0 ? 1 : outerModelData.slideNumber
|
||||||
return Kirigami.Units.gridUnit * 10 * slides + Kirigami.Units.smallSpacing * 2;
|
return Kirigami.Units.gridUnit * 10 * slides + Kirigami.Units.smallSpacing * 2;
|
||||||
|
@ -55,7 +55,7 @@ Item {
|
||||||
audioSource: ""
|
audioSource: ""
|
||||||
chosenFont: outerModelData.font
|
chosenFont: outerModelData.font
|
||||||
text: outerModelData.text[index] === "This is demo text" ? "" : outerModelData.text[index]
|
text: outerModelData.text[index] === "This is demo text" ? "" : outerModelData.text[index]
|
||||||
pdfIndex: 0
|
pdfIndex: outerModelData.type != "presentation" ? 0 : index
|
||||||
preview: true
|
preview: true
|
||||||
editMode: true
|
editMode: true
|
||||||
/* Component.onCompleted: { */
|
/* Component.onCompleted: { */
|
||||||
|
@ -65,13 +65,13 @@ Item {
|
||||||
/* } */
|
/* } */
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
/* MouseArea { */
|
MouseArea {
|
||||||
/* id: innerMouse */
|
id: innerMouse
|
||||||
/* anchors.fill: parent */
|
anchors.fill: parent
|
||||||
/* hoverEnabled: true */
|
hoverEnabled: true
|
||||||
/* onClicked: changeServiceItem(outerModelData.index) */
|
onClicked: changeServiceItem(outerModelData.index)
|
||||||
/* cursorShape: Qt.PointingHandCursor */
|
cursorShape: Qt.PointingHandCursor
|
||||||
/* } */
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,8 +91,9 @@ Item {
|
||||||
id: previewerMouse
|
id: previewerMouse
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: changeServiceItem(index)
|
/* onClicked: changeServiceItem(index) */
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
propagateComposedEvents: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue