Commit 5a8ac122 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

WHen dragging, hover on tab will focus the tab. Make it work from start

Related to #929
parent b08ff211
Pipeline #49155 passed with stage
in 10 minutes and 23 seconds
......@@ -32,8 +32,11 @@ void HideTitleBars::slotInstallRightClick()
QList<QTabBar *> tabs = pCore->window()->findChildren<QTabBar *>();
for (QTabBar *tab : qAsConst(tabs)) {
tab->setContextMenuPolicy(Qt::CustomContextMenu);
tab->setAcceptDrops(true);
tab->setChangeCurrentOnDrag(true);
connect(tab, &QWidget::customContextMenuRequested, this, &HideTitleBars::slotSwitchTitleBars);
}
// connect
QList<QDockWidget *> docks = pCore->window()->findChildren<QDockWidget *>();
for (QDockWidget *dock : qAsConst(docks)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment