diff --git a/debian/changelog b/debian/changelog index 0af3529..19bdb9d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +rpi-imager (1.6.2) unstable; urgency=medium + + * Add website link support + * Add CLI support + + -- Floris Bos Fri, 07 May 2021 13:19:19 +0200 + rpi-imager (1.6.1) unstable; urgency=medium * When saving advanced options delay modifying files diff --git a/icons/ic_info_12px.png b/icons/ic_info_12px.png new file mode 100644 index 0000000..2990d44 Binary files /dev/null and b/icons/ic_info_12px.png differ diff --git a/icons/ic_info_16px.png b/icons/ic_info_16px.png new file mode 100644 index 0000000..d2bfb4a Binary files /dev/null and b/icons/ic_info_16px.png differ diff --git a/main.qml b/main.qml index ccf9f14..9ece54d 100644 --- a/main.qml +++ b/main.qml @@ -374,6 +374,7 @@ ApplicationWindow { name: qsTr("Back") description: qsTr("Go back to main menu") tooltip: "" + website: "" } } @@ -414,6 +415,7 @@ ApplicationWindow { name: qsTr("Erase") description: qsTr("Format card as FAT32") tooltip: "" + website: "" } ListElement { @@ -479,8 +481,11 @@ ApplicationWindow { font.family: roboto.name textFormat: Text.RichText text: { - var txt = "

"+name+"

" - txt += ""+description+"" + var txt = "

"+name + if (typeof(website) == "string" && website) { + txt += "   " + } + txt += "

"+description+"" if (typeof(release_date) == "string" && release_date) txt += "
"+qsTr("Released: %1").arg(release_date) if (typeof(url) == "string" && url != "" && url != "internal://format") { @@ -496,6 +501,7 @@ ApplicationWindow { return txt; } + id: osText /* Accessible.role: Accessible.ListItem @@ -538,7 +544,11 @@ ApplicationWindow { } onClicked: { - selectOSitem(model) + if (osText.hoveredLink) { + Qt.openUrlExternally(osText.hoveredLink) + } else { + selectOSitem(model) + } } } } diff --git a/qml.qrc b/qml.qrc index fc65b57..b2465b2 100644 --- a/qml.qrc +++ b/qml.qrc @@ -26,5 +26,7 @@ countries.txt timezones.txt UseSavedSettingsPopup.qml + icons/ic_info_16px.png + icons/ic_info_12px.png