[utilities/konsole] src/widgets: TabbedViewContainer: support changing the tab by hovering a drag over it

Friedrich W. H. Kossebau <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 16086aeb575ff54c961e97de17b560fc79880a08 by Friedrich W. H. Kossebau.
Committed on 30/07/2026 at 21:24.
Pushed by kossebau into branch 'master'.

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

M  +1    -0    src/widgets/ViewContainer.cpp

https://invent.kde.org/utilities/konsole/-/commit/16086aeb575ff54c961e97de17b560fc79880a08

diff --git a/src/widgets/ViewContainer.cpp b/src/widgets/ViewContainer.cpp
index 26732c1b5..2607a54ae 100644
--- a/src/widgets/ViewContainer.cpp
+++ b/src/widgets/ViewContainer.cpp
@@ -79,6 +79,7 @@ TabbedViewContainer::TabbedViewContainer(ViewManager *connectedViewManager, QWid
     setTabBar(tabBarWidget);
     setDocumentMode(true);
     setMovable(true);
+    tabBar()->setChangeCurrentOnDrag(true);
     connect(tabBarWidget, &DetachableTabBar::moveTabToWindow, this, &TabbedViewContainer::moveTabToWindow);
     tabBar()->setContextMenuPolicy(Qt::CustomContextMenu);
     _newTabButton->setIcon(QIcon::fromTheme(QStringLiteral("tab-new")));
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.