@@ -41,10 +41,10 @@ PreviewWidget {
41 implicitHeight: childrenRect.height
41 implicitHeight: childrenRect.height
43 onIsCurrentPreviewChanged: ratingsList.updateRanges();
43 onIsCurrentPreviewChanged: ratingsList.updateRanges();
44− onParentListChanged: ratingsList.updateRanges();
44+ onParentFlickableChanged: ratingsList.updateRanges();
46 Connections {
46 Connections {
47− target: parentList
47+ target: parentFlickable
48 onOriginYChanged: ratingsList.updateRanges();
48 onOriginYChanged: ratingsList.updateRanges();
49 onContentYChanged: ratingsList.updateRanges();
49 onContentYChanged: ratingsList.updateRanges();
50 onHeightChanged: ratingsList.updateRanges();
50 onHeightChanged: ratingsList.updateRanges();
@@ -78,19 +78,19 @@ PreviewWidget {
79 function updateRanges() {
79 function updateRanges() {
80 var baseItem = root.parent;
80 var baseItem = root.parent;
81− if (!parentList || !baseItem) {
81+ if (!parentFlickable || !baseItem) {
82 ratingsList.displayMarginBeginning = 0;
82 ratingsList.displayMarginBeginning = 0;
83 ratingsList.displayMarginEnd = 0;
83 ratingsList.displayMarginEnd = 0;
87− if (parentList.moving) {
87+ if (parentFlickable.moving) {
88 // Do not update the range if we are overshooting up or down, since we'll come back
88 // Do not update the range if we are overshooting up or down, since we'll come back
89 // to the stable position and delete/create items without any reason
89 // to the stable position and delete/create items without any reason
90− if (parentList.contentY < parentList.originY) {
90+ if (parentFlickable.contentY < parentFlickable.originY) {
92− } else if (parentList.contentHeight - parentList.originY > parentList.height &&
92+ } else if (parentFlickable.contentHeight - parentFlickable.originY > parentFlickable.height &&
93− parentList.contentY + parentList.height > parentList.contentHeight) {
93+ parentFlickable.contentY + parentFlickable.height > parentFlickable.contentHeight) {
@@ -106,8 +106,8 @@ PreviewWidget {
106 // Ideally we would also use displayMarginBeginning
106 // Ideally we would also use displayMarginBeginning
107 // so that delegates at the beginning get destroyed but that causes issues with
107 // so that delegates at the beginning get destroyed but that causes issues with
108 // listview and is not really necessary to provide the better experience we're after
108 // listview and is not really necessary to provide the better experience we're after
109− var itemYOnViewPort = baseItem.y - parentList.contentY;
109+ var itemYOnViewPort = baseItem.y - parentFlickable.contentY;
110− var displayMarginEnd = -ratingsList.contentHeight + parentList.height - itemYOnViewPort;
110+ var displayMarginEnd = -ratingsList.contentHeight + parentFlickable.height - itemYOnViewPort;
111 displayMarginEnd = -Math.max(-displayMarginEnd, 0);
111 displayMarginEnd = -Math.max(-displayMarginEnd, 0);
112 displayMarginEnd = -Math.min(-displayMarginEnd, ratingsList.contentHeight);
112 displayMarginEnd = -Math.min(-displayMarginEnd, ratingsList.contentHeight);
113 displayMarginEnd = Math.round(displayMarginEnd);
113 displayMarginEnd = Math.round(displayMarginEnd);