From 49ebfa3f5d4d3073cb7cafe8977f75d925dfe86d Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 8 Jan 2018 15:43:08 +0100 Subject: [PATCH] TabBar: Don't hide add tab button when moving tabs --- src/lib/tabwidget/tabbar.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/tabwidget/tabbar.cpp b/src/lib/tabwidget/tabbar.cpp index 2b2ddd72d..b695be9c2 100644 --- a/src/lib/tabwidget/tabbar.cpp +++ b/src/lib/tabwidget/tabbar.cpp @@ -463,12 +463,6 @@ void TabBar::mouseMoveEvent(QMouseEvent* event) } if (!m_dragStartPosition.isNull()) { - if (m_tabWidget->buttonAddTab()->isVisible()) { - int manhattanLength = (event->pos() - m_dragStartPosition).manhattanLength(); - if (manhattanLength > QApplication::startDragDistance()) { - m_tabWidget->buttonAddTab()->hide(); - } - } int offset = 0; const int eventY = event->pos().y(); if (eventY < 0) {