Commit 6c3a46e0 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Fix SplitterProxy not clearing when above another QSplitterHandle

When two SplitterHandles are next to each other, like at the intersection of a
horizontal and vertical splitter (|-), then it's possible that hiding the proxy
of one of those handles causes the other handle to gain focus immediately,
which activates the SplitterProxy again. Before this patch, it would then
continue clearing after reenabling itself, leading to an inconsistent state.

BUG: 431921
(cherry picked from commit d201a1f1)
parent b2615c3d
......@@ -338,11 +338,6 @@ namespace Breeze
// release mouse
if( mouseGrabber() == this ) releaseMouse();
// hide
// send hover event
if( _splitter )
......@@ -351,7 +346,6 @@ namespace Breeze>mapFromGlobal(QCursor::pos()), _hook);
QCoreApplication::sendEvent(, &hoverEvent );
// kill timer if any
......@@ -361,6 +355,12 @@ namespace Breeze
_timerId = 0;
// hide
// Note: This sends a synthetic mouse event to the widget below (to get focus), which might be
// another SplitterHandle, therefore enabling this SplitterProxy again!
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment