[graphics/drawy] src/widgets/customelementswidget: Customize QListView settings

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 8b27170514b237e119b72df46af58d8f69918975 by Laurent Montel.
Committed on 28/07/2026 at 06:52.
Pushed by mlaurent into branch 'master'.

Customize QListView settings

M  +3    -0    src/widgets/customelementswidget/customelementslistview.cpp

https://invent.kde.org/graphics/drawy/-/commit/8b27170514b237e119b72df46af58d8f69918975

diff --git a/src/widgets/customelementswidget/customelementslistview.cpp b/src/widgets/customelementswidget/customelementslistview.cpp
index 48d1c28b..58e890d0 100644
--- a/src/widgets/customelementswidget/customelementslistview.cpp
+++ b/src/widgets/customelementswidget/customelementslistview.cpp
@@ -8,6 +8,9 @@
 CustomElementsListView::CustomElementsListView(QWidget *parent)
     : QListView(parent)
 {
+    setMouseTracking(true);
+    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+    setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
 }
 
 CustomElementsListView::~CustomElementsListView() = default;
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.