Double clicking on a tab will make it float

Also really required for Wayland, where we don't another way to
float a single tab, as the float button affects all of them.
This commit is contained in:
Sergio Martins
2020-10-17 12:09:47 +01:00
parent d7de0ebd20
commit 424453ab57
4 changed files with 13 additions and 0 deletions

View File

@@ -111,6 +111,11 @@ void TabBarWidget::mouseMoveEvent(QMouseEvent *e)
}
}
void TabBarWidget::mouseDoubleClickEvent(QMouseEvent *e)
{
TabBar::onMouseDoubleClick(e->pos());
}
bool TabBarWidget::dragCanStart(QPoint pressPos, QPoint pos) const
{
// Here we allow the user to re-order tabs instead of dragging them off.