From 9879e7fbc9c9b98f813dbb57895b1799bdc4c766 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 8 Oct 2023 18:34:09 +0200 Subject: [PATCH] Fixing changelog --- .../ad5001/LogarithmPlotter/Popup/Changelog.qml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml index 0288b8a..54ef3af 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml @@ -32,7 +32,7 @@ Popup { id: changelogPopup x: (parent.width-width)/2 y: Math.max(20, (parent.height-height)/2) - width: changelog.width+40 + width: 800 height: Math.min(parent.height-40, 500) modal: true focus: true @@ -44,33 +44,42 @@ Popup { */ property bool changelogNeedsFetching: true - onAboutToShow: if(changelogNeedsFetching) Helper.fetchChangelog() + onAboutToShow: if(changelogNeedsFetching) { + Helper.fetchChangelog() + } Connections { target: Helper function onChangelogFetched(chl) { changelogNeedsFetching = false; changelog.text = chl + changelogView.contentItem.implicitHeight = changelog.height + // console.log(changelog.height, changelogView.contentItem.implicitHeight) } } ScrollView { + id: changelogView anchors.top: parent.top anchors.topMargin: 10 anchors.left: parent.left anchors.leftMargin: 10 + anchors.right: parent.right + anchors.rightMargin: 10 anchors.bottom: doneBtn.top anchors.bottomMargin: 10 clip: true + Label { id: changelog color: sysPalette.windowText + width: 760 + wrapMode: Text.WordWrap textFormat: TextEdit.MarkdownText text: qsTr("Fetching changelog...") onLinkActivated: Qt.openUrlExternally(link) - } }