1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

TabBar: Always send mouse events to ComboTabBar

It needs every event to correctly update dragInProgress property.
This commit is contained in:
David Rosca 2018-01-08 12:24:20 +01:00
parent 4e988ac8f2
commit 78383c007e

View File

@ -437,6 +437,8 @@ void TabBar::mouseDoubleClickEvent(QMouseEvent* event)
void TabBar::mousePressEvent(QMouseEvent* event)
{
ComboTabBar::mousePressEvent(event);
if (mApp->plugins()->processMousePress(Qz::ON_TabBar, this, event)) {
return;
}
@ -446,12 +448,12 @@ void TabBar::mousePressEvent(QMouseEvent* event)
} else {
m_dragStartPosition = QPoint();
}
ComboTabBar::mousePressEvent(event);
}
void TabBar::mouseMoveEvent(QMouseEvent* event)
{
ComboTabBar::mouseMoveEvent(event);
if (mApp->plugins()->processMouseMove(Qz::ON_TabBar, this, event)) {
return;
}
@ -488,12 +490,12 @@ void TabBar::mouseMoveEvent(QMouseEvent* event)
return;
}
}
ComboTabBar::mouseMoveEvent(event);
}
void TabBar::mouseReleaseEvent(QMouseEvent* event)
{
ComboTabBar::mouseReleaseEvent(event);
m_dragStartPosition = QPoint();
if (mApp->plugins()->processMouseRelease(Qz::ON_TabBar, this, event)) {
@ -521,8 +523,6 @@ void TabBar::mouseReleaseEvent(QMouseEvent* event)
return;
}
}
ComboTabBar::mouseReleaseEvent(event);
}
void TabBar::wheelEvent(QWheelEvent* event)