From c158222d332df5baf7d00ccc971ea3e83ea84d4f Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 15 Apr 2021 21:21:20 +0200 Subject: [PATCH] Delete old commented code and minor restructuring --- src/qml/EntryPage.qml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/qml/EntryPage.qml b/src/qml/EntryPage.qml index 8211a471..994876e7 100644 --- a/src/qml/EntryPage.qml +++ b/src/qml/EntryPage.qml @@ -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") :