mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
TabBar: Always send mouse events to ComboTabBar
It needs every event to correctly update dragInProgress property.
This commit is contained in:
parent
4e988ac8f2
commit
78383c007e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user