TabBar: Don't hide add tab button when moving tabs

remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 68ed91c909
commit 49ebfa3f5d
  1. 6
      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) {

Loading…
Cancel
Save