public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mediawriter] epel10: Fix UI issues in download dialog with Qt 5.15
@ 2026-09-29 15:27 Jan Grulich
  0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-09-29 15:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mediawriter
Branch : epel10
Commit : 2a47afd091a337d881532b7d7669c1ba06615ef5
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2021-01-04T19:01:18+01:00
Stats  : +68/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mediawriter/c/2a47afd091a337d881532b7d7669c1ba06615ef5?branch=epel10

Log:
Fix UI issues in download dialog with Qt 5.15

---
diff --git a/mediawriter-fix-download-dialog-ui-with-latest-qt.patch b/mediawriter-fix-download-dialog-ui-with-latest-qt.patch
new file mode 100644
index 0000000..1602853
--- /dev/null
+++ b/mediawriter-fix-download-dialog-ui-with-latest-qt.patch
@@ -0,0 +1,62 @@
+diff --git a/app/dialogs/DownloadDialog.qml b/app/dialogs/DownloadDialog.qml
+index 5a19eb9..6ee539c 100644
+--- a/app/dialogs/DownloadDialog.qml
++++ b/app/dialogs/DownloadDialog.qml
+@@ -297,42 +297,42 @@ Dialog {
+ 
+                         InfoMessage {
+                             id: messageDownload
++                            Layout.fillWidth: true
+                             visible: false
+-                            width: infoColumn.width
+                             text: qsTr("The file will be saved to your Downloads folder.")
+                         }
+ 
+                         InfoMessage {
+                             id: messageLoseData
++                            Layout.fillWidth: true
+                             visible: false
+-                            width: infoColumn.width
+                             text: qsTr("By writing, you will lose all of the data on %1.").arg(driveCombo.currentText)
+                         }
+ 
+                         InfoMessage {
+                             id: messageRestore
++                            Layout.fillWidth: true
+                             visible: false
+-                            width: infoColumn.width
+                             text: qsTr("Your drive will be resized to a smaller capacity. You may resize it back to normal by using Fedora Media Writer; this will remove installation media from your drive.")
+                         }
+ 
+                         InfoMessage {
+                             id: messageSelectedImage
+-                            width: infoColumn.width
++                            Layout.fillWidth: true
+                             visible: releases.selected.isLocal
+                             text: "<font color=\"gray\">" + qsTr("Selected:") + "</font> " + (releases.variant.iso ? (((String)(releases.variant.iso)).split("/").slice(-1)[0]) : ("<font color=\"gray\">" + qsTr("None") + "</font>"))
+                         }
+ 
+                         InfoMessage {
+                             id: messageArmBoard
+-                            width: infoColumn.width
++                            Layout.fillWidth: true
+                             visible: boardCombo.otherSelected
+                             text: qsTr("Your board or device is not supported by Fedora Media Writer yet. Please check <a href=%1>this page</a> for more information about its compatibility with Fedora and how to create bootable media for it.").arg("https://fedoraproject.org/wiki/Architectures/ARM")
+                         }
+ 
+                         InfoMessage {
+                             id: messageDriveSize
+-                            width: infoColumn.width
++                            Layout.fillWidth: true
+                             enabled: true
+                             visible: enabled && drives.selected && drives.selected.size > 160 * 1024 * 1024 * 1024 // warn when it's more than 160GB
+                             text: qsTr("The selected drive's size is %1. It's possible you have selected an external drive by accident!").arg(drives.selected ? drives.selected.readableSize : "N/A")
+@@ -340,7 +340,7 @@ Dialog {
+ 
+                         InfoMessage {
+                             error: true
+-                            width: infoColumn.width
++                            Layout.fillWidth: true
+                             visible: releases.variant && releases.variant.errorString.length > 0
+                             text: releases.variant ? releases.variant.errorString : ""
+                         }

diff --git a/mediawriter.spec b/mediawriter.spec
index 4dc5b2b..77c59de 100644
--- a/mediawriter.spec
+++ b/mediawriter.spec
@@ -1,12 +1,14 @@
 Name:           mediawriter
 Version:        4.1.7
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Fedora Media Writer
 
 License:        GPLv2+
 URL:            https://github.com/FedoraQt/MediaWriter
 Source0:        https://github.com/FedoraQt/MediaWriter/archive/MediaWriter-%{version}.tar.gz
 
+Patch0:         mediawriter-fix-download-dialog-ui-with-latest-qt.patch
+
 Provides:       liveusb-creator = %{version}-%{release}
 Obsoletes:      liveusb-creator <= 3.95.4-2
 
@@ -67,6 +69,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.fedo
 
 
 %changelog
+* Mon Jan 04 2021 Jan Grulich <jgrulich@redhat.com> - 4.1.7-2
+- Fix UI issues in download dialog with Qt 5.15
+
 * Thu Dec 17 2020 Jan Grulich <jgrulich@redhat.com> - 4.1.7-1
 - 4.1.7
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-29 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 15:27 [rpms/mediawriter] epel10: Fix UI issues in download dialog with Qt 5.15 Jan Grulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox