[libraries/ktextaddons] textautogeneratetextmcpprotocol/widgets/server: Return headers

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f71bdd71feb1485fafb1d14df9deb16a11268274 by Laurent Montel.
Committed on 26/07/2026 at 19:17.
Pushed by mlaurent into branch 'master'.

Return headers

M  +5    -2    textautogeneratetextmcpprotocol/widgets/server/addmcpsteamablehttpserverheaderlistwidget.cpp

https://invent.kde.org/libraries/ktextaddons/-/commit/f71bdd71feb1485fafb1d14df9deb16a11268274

diff --git a/textautogeneratetextmcpprotocol/widgets/server/addmcpsteamablehttpserverheaderlistwidget.cpp b/textautogeneratetextmcpprotocol/widgets/server/addmcpsteamablehttpserverheaderlistwidget.cpp
index 3a6f240ce..ccb95291a 100644
--- a/textautogeneratetextmcpprotocol/widgets/server/addmcpsteamablehttpserverheaderlistwidget.cpp
+++ b/textautogeneratetextmcpprotocol/widgets/server/addmcpsteamablehttpserverheaderlistwidget.cpp
@@ -21,7 +21,10 @@ void AddMcpSteamableHttpServerHeaderListWidget::setHeaders(const QStringList &ls
 
 QStringList AddMcpSteamableHttpServerHeaderListWidget::headers() const
 {
-    // TODO
-    return {};
+    QStringList lst;
+    for (int i = 0; i < count(); ++i) {
+        lst.append(item(i)->text());
+    }
+    return lst;
 }
 #include "moc_addmcpsteamablehttpserverheaderlistwidget.cpp"
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.