Bug 371223

Summary: Tooltips non functional on Wayland
Product: [Applications] dolphin Reporter: Martin Flöser <mgraesslin>
Component: view-engine: tooltipAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: elvis.angelaccio, simonandric5
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 17.04.0
Sentry Crash Report:

Description Martin Flöser 2016-10-19 13:57:58 UTC
On Wayland the tooltips do not work. The tooltip window shows for a very short moment and then gets dismissed again.

Reproducible: Always

Steps to Reproduce:
1. Use Wayland
2. Enable tooltips
3. Hover a folder

Actual Results:  
A window flashes up for a short moment somewhere on the screen

Expected Results:  
Tooltip

This might be related to a related issue in systemsettings which is addressed by https://phabricator.kde.org/D3112

The tooltip window lacks the transientParent QWindow which is required on Wayland (and actually also on X11) to have the correct relationship. On Wayland tooltips are positioned in relation to their transient parent window.
Comment 1 Elvis Angelaccio 2017-02-05 22:03:57 UTC
Git commit 230fe13d1fccf8c2ab09c0873c1cc4c733cfc3b4 by Elvis Angelaccio.
Committed on 05/02/2017 at 21:56.
Pushed by elvisangelaccio into branch 'master'.

Port tooltips to KToolTipWidget

Use the new KToolTipWidget class (introduced by kwidgetsaddons 5.30) as backend of ToolTipManager.
FileMetaDataToolTip becomes a simple widget used as content of the tooltip.

It is now possible to actually use the metadata widget shown inside the tooltips.
Tooltips are now functional on Wayland as well.

More information about KToolTipWidget in https://git.reviewboard.kde.org/r/129648/
Related: bug 352276
FIXED-IN: 17.04.0

Closes T4980
Differential Revision: D4449

M  +1    -1    CMakeLists.txt
M  +1    -1    src/views/dolphinview.cpp
M  +0    -19   src/views/tooltips/filemetadatatooltip.cpp
M  +2    -6    src/views/tooltips/filemetadatatooltip.h
M  +11   -73   src/views/tooltips/tooltipmanager.cpp
M  +8    -2    src/views/tooltips/tooltipmanager.h

https://commits.kde.org/dolphin/230fe13d1fccf8c2ab09c0873c1cc4c733cfc3b4