[plasma/discover] discover/qml: ProgressView: Include the status as a section

Aleix Pol <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 1423a46909665e505bdf4146948da162718a9d66 by Aleix Pol.
Committed on 22/07/2026 at 22:34.
Pushed by apol into branch 'master'.

ProgressView: Include the status as a section

We can do that now that we're sorted.
Removes the status from the delegate, which unclutters the view a little
too.

M  +7    -10   discover/qml/ProgressView.qml

https://invent.kde.org/plasma/discover/-/commit/1423a46909665e505bdf4146948da162718a9d66

diff --git a/discover/qml/ProgressView.qml b/discover/qml/ProgressView.qml
index 659167d85..9b75ff1e0 100644
--- a/discover/qml/ProgressView.qml
+++ b/discover/qml/ProgressView.qml
@@ -82,6 +82,11 @@ QQC2.ToolButton {
                         return sourceModel.data(index, Discover.TransactionModel.VisibleRole) === true;
                     }
                 }
+                section.property: "statusText"
+                section.delegate: Kirigami.ListSectionHeader {
+                    required property string section
+                    text: section
+                }
 
                 Connections {
                     target: Discover.TransactionModel
@@ -136,25 +141,17 @@ QQC2.ToolButton {
 
                                     if (li.isActive && tr.remainingTime > 0) {
                                         return i18nc(
-                                            "TransactioName - TransactionStatus: speed, remaining time", "%1 - %2: %3, %4 remaining",
+                                            "TransactioName - TransactionStatus: speed, remaining time", "%1: %2, %3 remaining",
                                             tr.name,
-                                            li.statusText,
                                             tr.downloadSpeedString,
                                             tr.remainingTime
                                         );
                                     } else if (li.isActive && tr.downloadSpeed > 0) {
                                         return i18nc(
-                                            "TransactioName - TransactionStatus: speed", "%1 - %2: %3",
+                                            "TransactioName - TransactionStatus: speed", "%1: %2",
                                             tr.name,
-                                            li.statusText,
                                             tr.downloadSpeedString
                                         );
-                                    } else if (li.isActive) {
-                                        return i18nc(
-                                            "TransactioName - TransactionStatus", "%1 - %2",
-                                            tr.name,
-                                            li.statusText
-                                        );
                                     } else {
                                         return tr.name;
                                     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.