Bug 371223 - Tooltips non functional on Wayland
Summary: Tooltips non functional on Wayland
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: tooltip (show other bugs)
Version: 16.12.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-19 13:57 UTC by Martin Flöser
Modified: 2017-02-05 22:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 17.04.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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