mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
TabBar: Don't hide add tab button when moving tabs
This commit is contained in:
parent
68ed91c909
commit
49ebfa3f5d
@ -463,12 +463,6 @@ void TabBar::mouseMoveEvent(QMouseEvent* event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!m_dragStartPosition.isNull()) {
|
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;
|
int offset = 0;
|
||||||
const int eventY = event->pos().y();
|
const int eventY = event->pos().y();
|
||||||
if (eventY < 0) {
|
if (eventY < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user