window.windowViewsModel.append({ component: listSourceModel[window.currentSourceIndex].listViews[currentSourceDepth].viewComponent,
componentId: listSourceModel[window.currentSourceIndex].listViews[currentSourceDepth].viewId,
componentDepth: currentSourceDepth+1 })
+
+ window.windowViewsList.currentIndex = currentSourceDepth+1;
}
}
}
componentId: listSourceModel[window.currentSourceIndex].listViews[currentSourceDepth].viewId,
componentDepth: currentSourceDepth+1 })
+ window.windowViewsList.currentIndex = currentSourceDepth+1;
+
//newsDetailRect.webViewAction.enabled = false
//// sourcesRect.x -= window.width + newsRect.x
//newsDetailRect.webViewAction.enabled = true
{
var newsIndex = listSourceModel[window.currentSourceIndex].currentPath[componentDepth-1]
- if( typeof currentSource.listModels[componentDepth-1].get(newsIndex) != "undefined" )
- if( typeof currentSource.listModels[componentDepth-1].get(newsIndex)[prop] != "undefined" )
- return currentSource.listModels[componentDepth-1].get(newsIndex)[prop]
+ if( typeof currentSource.listModels[componentDepth-1] != "undefined" )
+ if( typeof currentSource.listModels[componentDepth-1].get(newsIndex) != "undefined" )
+ if( typeof currentSource.listModels[componentDepth-1].get(newsIndex)[prop] != "undefined" )
+ return currentSource.listModels[componentDepth-1].get(newsIndex)[prop]
return ""
}
listSourceModel[window.currentSourceIndex].currentPath = [index]
window.currentSourceIndex = index
+
+ window.windowViewsList.currentIndex = 1;
}
}
}
property variant currentSource: listSourceModel[currentSourceIndex]
property bool loading: currentSource.loading
property ListModel windowViewsModel: viewsModel
+ property ListView windowViewsList: viewsList
ListView {
id: viewsList