@@ -85,8 +85,8 @@ FocusScope {
86 subPageLoader.model = resultsModel;
86 subPageLoader.model = resultsModel;
88− subPageLoader.currentIndex = -1;
88+ subPageLoader.initialIndex = -1;
89− subPageLoader.currentIndex = index;
89+ subPageLoader.initialIndex = index;
90 subPageLoader.subPage = "preview";
90 subPageLoader.subPage = "preview";
91 subPageLoader.openSubPage();
91 subPageLoader.openSubPage();
@@ -466,11 +466,12 @@ FocusScope {
466 property bool open: false
466 property bool open: false
467 property var scope: scopeView.scope
467 property var scope: scopeView.scope
468 property var scopeStyle: scopeView.scopeStyle
468 property var scopeStyle: scopeView.scopeStyle
469− property int currentIndex: -1
469+ property int initialIndex: -1
470 property var model: null
470 property var model: null
472 readonly property bool processing: status === Loader.Ready && item.hasOwnProperty("processing") ? item.processing : false
472 readonly property bool processing: status === Loader.Ready && item.hasOwnProperty("processing") ? item.processing : false
473 readonly property int count: status === Loader.Ready && item.hasOwnProperty("count") ? item.count : 0
473 readonly property int count: status === Loader.Ready && item.hasOwnProperty("count") ? item.count : 0
474+ readonly property int currentIndex: status === Loader.Ready && item.hasOwnProperty("currentIndex") ? item.currentIndex : false
474 readonly property var currentItem: status === Loader.Ready && item.hasOwnProperty("currentItem") ? item.currentItem : false
475 readonly property var currentItem: status === Loader.Ready && item.hasOwnProperty("currentItem") ? item.currentItem : false
476 property string subPage: ""
477 property string subPage: ""
@@ -482,7 +483,7 @@ FocusScope {
482 item.scope = Qt.binding(function() { return subPageLoader.scope } )
483 item.scope = Qt.binding(function() { return subPageLoader.scope } )
483 item.scopeStyle = Qt.binding(function() { return subPageLoader.scopeStyle } )
484 item.scopeStyle = Qt.binding(function() { return subPageLoader.scopeStyle } )
484 if (item.hasOwnProperty("open")) item.open = Qt.binding(function() { return subPageLoader.open } )
485 if (item.hasOwnProperty("open")) item.open = Qt.binding(function() { return subPageLoader.open } )
485− if (item.hasOwnProperty("currentIndex")) item.currentIndex = Qt.binding(function() { return subPageLoader.currentIndex } )
486+ if (item.hasOwnProperty("initialIndex")) item.initialIndex = Qt.binding(function() { return subPageLoader.initialIndex } )
486 if (item.hasOwnProperty("model")) item.model = Qt.binding(function() { return subPageLoader.model } )
487 if (item.hasOwnProperty("model")) item.model = Qt.binding(function() { return subPageLoader.model } )