Changeset View
Changeset View
Standalone View
Standalone View
plugins/welcomepage/qml/area_code.qml
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 30 | tools: ColumnLayout { | |||
---|---|---|---|---|---|
56 | } | 56 | } | ||
57 | 57 | | |||
58 | Item { | 58 | Item { | ||
59 | Layout.fillWidth: true | 59 | Layout.fillWidth: true | ||
60 | Layout.fillHeight: true | 60 | Layout.fillHeight: true | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | Heading { | 63 | Heading { | ||
64 | id: newsHeading | ||||
65 | | ||||
66 | Layout.fillWidth: true | ||||
67 | text: i18n("News") | ||||
68 | } | ||||
69 | | ||||
70 | NewsFeed { | ||||
71 | id: newsFeed | ||||
72 | | ||||
73 | readonly property int maxEntries: 3 | ||||
74 | | ||||
75 | Layout.fillWidth: true | ||||
76 | Layout.minimumHeight: enabled && !loading ? (Math.min(count, maxEntries) * 40) : 30 | ||||
77 | | ||||
78 | Behavior on Layout.minimumHeight { PropertyAnimation {} } | ||||
79 | | ||||
80 | Timer { | ||||
81 | // delay loading a bit so it has no effect on the KDevelop startup | ||||
82 | interval: 3000 | ||||
83 | running: true | ||||
84 | onTriggered: newsFeed.enabled = true | ||||
85 | } | ||||
86 | } | ||||
87 | | ||||
88 | // add some spacing | ||||
89 | Item { | ||||
90 | Layout.fillWidth: true | ||||
91 | height: 10 | ||||
92 | } | ||||
93 | | ||||
94 | Heading { | ||||
64 | text: i18n("Need Help?") | 95 | text: i18n("Need Help?") | ||
65 | } | 96 | } | ||
66 | 97 | | |||
67 | Column { | 98 | Column { | ||
68 | spacing: 10 | 99 | spacing: 10 | ||
69 | 100 | | |||
70 | Link { | 101 | Link { | ||
71 | x: 10 | 102 | x: 10 | ||
Show All 30 Lines |