[libraries/ktextaddons] textautogeneratetext: Prepare combobox support

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 298e50e90c3a171863a1351ad553645578feca2a by Laurent Montel.
Committed on 10/08/2026 at 06:19.
Pushed by mlaurent into branch 'master'.

Prepare combobox support

M  +2    -0    textautogeneratetext/CMakeLists.txt
A  +14   -0    textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.cpp     [License: GPL(v2.0+)]
A  +18   -0    textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.h     [License: GPL(v2.0+)]

https://invent.kde.org/libraries/ktextaddons/-/commit/298e50e90c3a171863a1351ad553645578feca2a

diff --git a/textautogeneratetext/CMakeLists.txt b/textautogeneratetext/CMakeLists.txt
index 6adcd35cf..b5d0b171c 100644
--- a/textautogeneratetext/CMakeLists.txt
+++ b/textautogeneratetext/CMakeLists.txt
@@ -438,6 +438,8 @@ target_sources(
         widgets/promptswidget/textautogenerateselectpromptlistwidget.cpp
         widgets/promptswidget/textautogenerateselectpromptdelegate.h
         widgets/promptswidget/textautogenerateselectpromptdelegate.cpp
+        widgets/promptswidget/textautogeneratepromptcombobox.cpp
+        widgets/promptswidget/textautogeneratepromptcombobox.h
 )
 
 if(BUILD_TESTING)
diff --git a/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.cpp b/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.cpp
new file mode 100644
index 000000000..8da1a4324
--- /dev/null
+++ b/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.cpp
@@ -0,0 +1,14 @@
+/*
+  SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+  SPDX-License-Identifier: GPL-2.0-or-later
+*/
+#include "textautogeneratepromptcombobox.h"
+
+using namespace TextAutoGenerateText;
+TextAutoGeneratePromptComboBox::TextAutoGeneratePromptComboBox(QWidget *parent)
+    : QComboBox(parent)
+{
+}
+
+TextAutoGeneratePromptComboBox::~TextAutoGeneratePromptComboBox() = default;
diff --git a/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.h b/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.h
new file mode 100644
index 000000000..20ade4ef9
--- /dev/null
+++ b/textautogeneratetext/widgets/promptswidget/textautogeneratepromptcombobox.h
@@ -0,0 +1,18 @@
+/*
+  SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+  SPDX-License-Identifier: GPL-2.0-or-later
+*/
+#pragma once
+#include "textautogeneratetext_private_export.h"
+#include <QComboBox>
+namespace TextAutoGenerateText
+{
+class TEXTAUTOGENERATETEXT_TESTS_EXPORT TextAutoGeneratePromptComboBox : public QComboBox
+{
+    Q_OBJECT
+public:
+    explicit TextAutoGeneratePromptComboBox(QWidget *parent = nullptr);
+    ~TextAutoGeneratePromptComboBox() override;
+};
+}
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.