Delete old commented code and minor restructuring

This commit is contained in:
Bart De Vries 2021-04-15 21:21:20 +02:00
parent 5edc0b0f3e
commit c158222d33
1 changed files with 12 additions and 18 deletions

View File

@ -21,25 +21,19 @@ Kirigami.ScrollablePage {
title: entry.title
/*Flickable {
anchors.fill: parent
clip: true
contentHeight: text.height
*/
Controls.Label {
width: page.width - 30
id: text
text: page.entry.content
baseUrl: page.entry.baseUrl
textFormat: Text.RichText
wrapMode: Text.WordWrap
Layout.fillWidth: true
Layout.fillHeight: true
onLinkActivated: Qt.openUrlExternally(link)
//onWidthChanged: { text = entry.adjustedContent(width, font.pixelSize) }
}
//}
Controls.Label {
width: page.width - 30
id: text
text: page.entry.content
baseUrl: page.entry.baseUrl
textFormat: Text.RichText
wrapMode: Text.WordWrap
Layout.fillWidth: true
Layout.fillHeight: true
onLinkActivated: Qt.openUrlExternally(link)
//onWidthChanged: { text = entry.adjustedContent(width, font.pixelSize) }
}
actions.main: Kirigami.Action {
text: !entry.enclosure ? i18n("Open in Browser") :
entry.enclosure.status === Enclosure.Downloadable ? i18n("Download") :