[multimedia/kasts] src/qml: Fix text of search bar placeholder

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

Fix text of search bar placeholder

M  +1    -0    src/qml/EpisodeListPage.qml
M  +1    -0    src/qml/FeedDetailsPage.qml
M  +1    -0    src/qml/FeedListPage.qml
M  +2    -1    src/qml/SearchBar.qml

https://invent.kde.org/multimedia/kasts/-/commit/b3795369bfc1182c71543d53245c7bcca0c02e5c

diff --git a/src/qml/EpisodeListPage.qml b/src/qml/EpisodeListPage.qml
index 430ac9b5..594dbb52 100644
--- a/src/qml/EpisodeListPage.qml
+++ b/src/qml/EpisodeListPage.qml
@@ -84,6 +84,7 @@ Kirigami.ScrollablePage {
         sourceComponent: SearchBar {
             proxyModel: episodeProxyModel
             parentKey: searchActionButton
+            placeholderText: KI18n.i18nc("@label:textbox Placeholder text for episode search field", "Search episodes…")
         }
     }
 
diff --git a/src/qml/FeedDetailsPage.qml b/src/qml/FeedDetailsPage.qml
index 83b485d8..92db9c7d 100644
--- a/src/qml/FeedDetailsPage.qml
+++ b/src/qml/FeedDetailsPage.qml
@@ -88,6 +88,7 @@ Kirigami.ScrollablePage {
         sourceComponent: SearchBar {
             proxyModel: root.feed.entries ? root.feed.entries : emptyListModel
             parentKey: searchActionButton
+            placeholderText: KI18n.i18nc("@label:textbox Placeholder text for episode search field", "Search episodes…")
         }
     }
 
diff --git a/src/qml/FeedListPage.qml b/src/qml/FeedListPage.qml
index b99a9ca2..44b17be5 100644
--- a/src/qml/FeedListPage.qml
+++ b/src/qml/FeedListPage.qml
@@ -148,6 +148,7 @@ Kirigami.ScrollablePage {
             proxyModel: gridView.model
             parentKey: searchActionButton
             showSearchFilters: false
+            placeholderText: KI18n.i18nc("@label:textbox Placeholder text for search field", "Search subscriptions…")
         }
     }
 
diff --git a/src/qml/SearchBar.qml b/src/qml/SearchBar.qml
index 4ccc1021..b8f3f73f 100644
--- a/src/qml/SearchBar.qml
+++ b/src/qml/SearchBar.qml
@@ -21,6 +21,7 @@ Controls.Control {
     required property var proxyModel
     required property var parentKey
     property bool showSearchFilters: true
+    required property string placeholderText
 
     leftPadding: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing
     rightPadding: Kirigami.Units.largeSpacing
@@ -42,7 +43,7 @@ Controls.Control {
     contentItem: Kirigami.SearchField {
         id: searchField
         Layout.fillWidth: true
-        placeholderText: KI18n.i18nc("@label:textbox Placeholder text for episode search field", "Search episodes…")
+        placeholderText: root.placeholderText
         text: root.proxyModel.searchFilter
         focus: true
         autoAccept: false
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.