Skip to content

Prevent tooltips from being incorrectly dismissed

Fushan Wen requested to merge (removed):tooltip into master

Having a single shared ToolTipDelegate causes problems with Dialog positioning when the size changes significantly.

The sequence of widget events when the bug is triggered is:

  1. QEvent::Resize (Size is changed)
  2. QEvent::Move (Position is changed, but the vertical coordinate is not)
  3. QEvent::Leave (Therefore some tooltips are incorrectly dismissed)

Add m_extendTimeoutFlag to prevent interactive tooltips from being incorrectly dismissed.

BUG: 439522

CCBUG: 434657

FIX-BUG439522

See also: plasma-desktop!393 (merged) @bharadwaj-raju

This MR is needed as well after https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/341 is applied: plasma-desktop!579 (merged)

Edited by Fushan Wen

Merge request reports

Loading