[libraries/ktextaddons/2.1] textautogeneratetext/widgets: Don't expand on double click

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit cd2e8f694f718d3c50b4c8e30d39c69ae43a961b by Laurent Montel.
Committed on 29/07/2026 at 06:39.
Pushed by mlaurent into branch '2.1'.

Don't expand on double click

M  +1    -0    textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
M  +1    -0    textautogeneratetext/widgets/view/textautogeneratehistorylistview.cpp

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

diff --git a/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp b/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
index 41d03abb4..9ba64d1bf 100644
--- a/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
+++ b/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
@@ -25,6 +25,7 @@ void TextAutoGenerateHistoryListViewTest::shouldHaveDefaultValues()
     QVERIFY(w.itemsExpandable());
     QCOMPARE(w.horizontalScrollBarPolicy(), Qt::ScrollBarAlwaysOff);
     QVERIFY(w.isHeaderHidden());
+    QVERIFY(!w.expandsOnDoubleClick());
 }
 
 #include "moc_textautogeneratehistorylistviewtest.cpp"
diff --git a/textautogeneratetext/widgets/view/textautogeneratehistorylistview.cpp b/textautogeneratetext/widgets/view/textautogeneratehistorylistview.cpp
index 8e4e28272..f7bb65f41 100644
--- a/textautogeneratetext/widgets/view/textautogeneratehistorylistview.cpp
+++ b/textautogeneratetext/widgets/view/textautogeneratehistorylistview.cpp
@@ -33,6 +33,7 @@ TextAutoGenerateHistoryListView::TextAutoGenerateHistoryListView(TextAutoGenerat
     setIndentation(0);
     setRootIsDecorated(false);
     setItemsExpandable(true);
+    setExpandsOnDoubleClick(false);
     setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
     setItemDelegate(mDelegate);
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.