[kdevelop/kdevelop] kdevplatform/sublime: TabbedViewContainer: support changing the tab by hovering a drag over it

Martin Bednar <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 3008aa3cbeb73b06294dffa7b391b45fada66090 by Martin Bednar, on behalf of Friedrich W. H. Kossebau.
Committed on 28/07/2026 at 20:57.
Pushed by bednar into branch 'master'.

TabbedViewContainer: support changing the tab by hovering a drag over it

M  +3    -0    kdevplatform/sublime/container.cpp

https://invent.kde.org/kdevelop/kdevelop/-/commit/3008aa3cbeb73b06294dffa7b391b45fada66090

diff --git a/kdevplatform/sublime/container.cpp b/kdevplatform/sublime/container.cpp
index 0b4c2da689..f9a69bb041 100644
--- a/kdevplatform/sublime/container.cpp
+++ b/kdevplatform/sublime/container.cpp
@@ -109,6 +109,9 @@ public:
         setDocumentMode(true);
         setUsesScrollButtons(true);
         setElideMode(Qt::ElideNone);
+        // support easier dragging between views
+       setAcceptDrops(true);
+       setChangeCurrentOnDrag(true);
     }
 
     bool event(QEvent* ev) 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.