Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 150 | ScrollBar { | |||
---|---|---|---|---|---|
152 | Layout.fillWidth: true | 152 | Layout.fillWidth: true | ||
153 | } | 153 | } | ||
154 | 154 | | |||
155 | Label { | 155 | Label { | ||
156 | Layout.topMargin: Kirigami.Units.largeSpacing | 156 | Layout.topMargin: Kirigami.Units.largeSpacing | ||
157 | Layout.fillWidth: true | 157 | Layout.fillWidth: true | ||
158 | wrapMode: Text.WordWrap | 158 | wrapMode: Text.WordWrap | ||
159 | text: appInfo.application.longDescription | 159 | text: appInfo.application.longDescription | ||
160 | onLinkActivated: Qt.openUrlExternally(link); | ||||
161 | // Since Text (and Label) lack cursor-changing abilities of their own, | ||||
162 | // as suggested by QTBUG-30804, use a MouseAra to do our dirty work. | ||||
163 | // See comment https://bugreports.qt.io/browse/QTBUG-30804?#comment-206287 | ||||
164 | MouseArea { | ||||
165 | anchors.fill: parent | ||||
166 | cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor | ||||
167 | acceptedButtons: Qt.NoButton // Not actually accepting clicks, just changing the cursor | ||||
168 | } | ||||
160 | } | 169 | } | ||
161 | 170 | | |||
162 | Kirigami.Heading { | 171 | Kirigami.Heading { | ||
163 | Layout.topMargin: Kirigami.Units.largeSpacing | 172 | Layout.topMargin: Kirigami.Units.largeSpacing | ||
164 | text: i18n("What's New") | 173 | text: i18n("What's New") | ||
165 | level: 2 | 174 | level: 2 | ||
166 | visible: changelogLabel.text.length > 0 | 175 | visible: changelogLabel.text.length > 0 | ||
167 | } | 176 | } | ||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |