[multimedia/kasts] src/qml: Move "Copy episode download url" button to toolbar

Bart De Vries <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 604ccc20a0a7faa4f171f0e78639d39d9667f71f by Bart De Vries, on behalf of Tobias Fella.
Committed on 30/07/2026 at 15:49.
Pushed by bdevries into branch 'master'.

Move "Copy episode download url" button to toolbar

It's awkwardly positioned down there

M  +22   -29   src/qml/EntryPage.qml

https://invent.kde.org/multimedia/kasts/-/commit/604ccc20a0a7faa4f171f0e78639d39d9667f71f

diff --git a/src/qml/EntryPage.qml b/src/qml/EntryPage.qml
index 80257619..96b39138 100644
--- a/src/qml/EntryPage.qml
+++ b/src/qml/EntryPage.qml
@@ -216,6 +216,28 @@ Kirigami.ScrollablePage {
                         text: KI18n.i18nc("@action:intoolbar Button to open the podcast URL in browser", "Open Podcast")
                         displayHint: Kirigami.DisplayHint.AlwaysHide
                         onTriggered: (root.Controls.ApplicationWindow.window as Main).openPodcast(root.entry.feeduid)
+                    },
+                    Kirigami.Action {
+                        text: KI18n.i18nc("@action:button", "Copy Episode Download URL")
+                        icon.name: "edit-copy"
+                        displayHint: Kirigami.DisplayHint.AlwaysHide
+
+                        onTriggered: {
+                            (root.Controls.ApplicationWindow.window as Main).showPassiveNotification(KI18n.i18nc("@info:status", "Link Copied"));
+                            enclosureUrl.selectAll();
+                            enclosureUrl.copy();
+                            enclosureUrl.deselect();
+                        }
+
+                        // copy url from this invisible textedit
+                        property TextEdit _helper : TextEdit {
+                            id: enclosureUrl
+                            visible: false
+                            readOnly: true
+                            textFormat: TextEdit.RichText
+                            text: root.entry.hasEnclosure ? root.entry.enclosure.url : ""
+                            color: Kirigami.Theme.textColor
+                        }
                     }
                 ]
             }
@@ -276,34 +298,5 @@ Kirigami.ScrollablePage {
             }
             delegate: ChapterListDelegate {}
         }
-
-        Controls.Button {
-            Layout.leftMargin: Kirigami.Units.gridUnit
-            Layout.rightMargin: Kirigami.Units.gridUnit
-            Layout.bottomMargin: Kirigami.Units.gridUnit
-            visible: root.entry.hasEnclosure
-
-            text: KI18n.i18nc("@action:button", "Copy Episode Download URL")
-            height: enclosureUrl.height
-            width: enclosureUrl.height
-            icon.name: "edit-copy"
-
-            onClicked: {
-                (Controls.ApplicationWindow.window as Main).showPassiveNotification(KI18n.i18nc("@info:status", "Link Copied"));
-                enclosureUrl.selectAll();
-                enclosureUrl.copy();
-                enclosureUrl.deselect();
-            }
-
-            // copy url from this invisible textedit
-            TextEdit {
-                id: enclosureUrl
-                visible: false
-                readOnly: true
-                textFormat: TextEdit.RichText
-                text: root.entry.hasEnclosure ? root.entry.enclosure.url : ""
-                color: Kirigami.Theme.textColor
-            }
-        }
     }
 }
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.