9
property var imageArray: []
10
property bool invalid: false
11
property var modelItem
13
property int modelIndex
10
16
height: units.gu(15) /*content.height + units.gu(4)*/
11
color: rss_item.status == "1" ? Qt.rgba(0, 0, 0, 0.7) : Qt.rgba(0, 0, 0, 0.4)
17
color: invalid ? "black" : modelItem.status == "1" ? Qt.rgba(0, 0, 0, 0.7) : Qt.rgba(0, 0, 0, 0.4)
15
property var imageArray: []
16
property var rss_model
17
property int model_index
21
if (modelItem == null) {
22
// anchors{ left: parent.left; right: parent.right; margins: units.gu(2); verticalCenter: parent.verticalCenter }
24
30
fill: parent; topMargin: units.gu(2); bottomMargin: units.gu(1.5);
25
31
leftMargin: units.gu(1); rightMargin: units.gu(1.5)
27
33
spacing: units.gu(1)
32
text: DateUtils.formatRelativeTime(i18n, rss_item.pubdate)
37
text: { invalid ? "" : DateUtils.formatRelativeTime(i18n, modelItem.pubdate) }
33
38
fontSize: "x-small"
34
39
width: parent.width
35
40
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
47
text: invalid ? "" : modelItem.title
43
48
width: parent.width
44
height: parent.height - parent.spacing * 2 - label_time.paintedHeight - label_feedname.paintedHeight
49
height: parent.height - parent.spacing * 2 - label_time.paintedHeight - labelFeedname.paintedHeight
45
50
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
47
52
textFormat: Text.PlainText
48
53
font.weight: Font.DemiBold
49
54
elide: Text.ElideRight
50
opacity: rss_item.status == "1" ? 0.4 : 0.8
55
opacity: invalid ? 0.4 : modelItem.status == "1" ? 0.4 : 0.8
56
text: rss_item.feed_name
61
text: invalid ? "" : modelItem.feed_name
57
62
fontSize: "x-small"
58
63
width: parent.width
59
64
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
66
70
anchors.fill: parent
70
// var dbResult = DB.updateArticleStatus(rss_item.id, "1")
71
// if (dbResult.rowsAffected == 1) {
72
// rss_item.status = "1"
74
mainView.toRssPage(rss_model, model_index) ;
72
mainView.toRssPage(rssModel, modelIndex)