6 width: window.width; height: window.height
8 function getNewsModelItem(prop)
10 if( typeof currentSource.listModels[componentDepth-1] != "undefined" )
11 if( typeof currentSource.listModels[componentDepth-1][prop] != "undefined" )
12 return currentSource.listModels[componentDepth-1][prop]
17 property string urllink: getNewsModelItem('urllink')
18 property string htmlcontent: getNewsModelItem('htmlcontent')
19 property string title: getNewsModelItem('title')
20 property string image: getNewsModelItem('image')
27 width: newsDetailRect.width
28 height: column.height + 10
33 width: parent.width - 20
44 anchors.verticalCenter: detailImage.verticalCenter
45 text: title; width: column.width - detailImage.width - 10; wrapMode: Text.WordWrap
46 font { bold: true; family: "Helvetica"; pointSize: 16 }
52 text: htmlcontent; width: newsDetailRect.width - 20; wrapMode: Text.WordWrap
53 horizontalAlignment: Text.AlignJustify;
54 font.family: "Helvetica"
62 var currentSourceDepth = currentSource.listModels[componentDepth-1].sourceDepth
64 if (listSourceModel[window.currentSourceIndex].listViews.length >= currentSourceDepth+1)
66 // here we remove everything in viewsModel after index "currentSourceDepth"
67 while(window.windowViewsModel.count>currentSourceDepth+1)
68 window.windowViewsModel.remove(window.windowViewsModel.count-1)
70 var path = listSourceModel[window.currentSourceIndex].currentPath
71 path[currentSourceDepth] = index
72 listSourceModel[window.currentSourceIndex].currentPath = path.slice(0,currentSourceDepth+1)
74 window.windowViewsModel.append({ component: listSourceModel[window.currentSourceIndex].listViews[currentSourceDepth].viewComponent,
75 componentDepth: currentSourceDepth+1 })
83 anchors.fill: newsDetailRect
86 ScrollBar { scrollArea: itemListView; height: itemListView.height; width: 8; anchors.right: itemListView.right }