@@ -151,43 +151,39 @@ Item {
154− delegate: Previews.Preview {
154+ delegate: Item {
156− objectName: "preview" + index
157 height: previewListView.height
155 height: previewListView.height
158 width: previewListView.width
156 width: previewListView.width
160+ objectName: "preview" + index
161+ anchors.fill: parent
160− isCurrent: ListView.isCurrentItem
163+ isCurrent: parent.ListView.isCurrentItem
162− onPreviewModelChanged: preview.opacity = 0;
163− onReadyChanged: if (ready) fadeIn.start()
164− previewModel: {
165+ previewModel: {
166− // We need the isCurrent because the scope fails to
167− // deliver the preview if we ask for one after other very quickly
168− // If we remove the isCurrent, we will have to think another way of
169− // doing the fadeIn or just don't do it at all or just decide
170− // this code is good enough and remove the TODO
172 var previewStack = root.scope.preview(result);
166 var previewStack = root.scope.preview(result);
173 return previewStack.get(0);
167 return previewStack.get(0);
171+ // previewListView.open = false
180−// onClose: {
176+ MouseArea {
181−// previewListView.open = false
177+ id: processingMouseArea
178+ objectName: "processingMouseArea"
179+ anchors.fill: parent
180+ enabled: !preview.previewModel.loaded || preview.previewModel.processingAction
183+ anchors.centerIn: parent
184+ visible: parent.enabled
190− duration: UbuntuAnimation.BriskDuration