Created attachment 134743 [details]
The tooltip text is clipped near the end
Filelight's (Version 20.12.1) tooltips are sometimes incorrectly clipped, some locations do not suffer from this issue when mouse is placed over them, but the most affected files are located in the following directories: /usr, /opt, /lib
STEPS TO REPRODUCE
1. Open Filelight
2. Navigate to /usr, /opt, /lib
3. Mouse over some locations
Tooltips are clipped incorrectly
Tooltip size should fit text
Linux/KDE Plasma: 5.10.6-arch1-1
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Long path names and short path names also have this issue
Created attachment 134871 [details]
I'm unable to replicate this issue. See screenshot, my tooltip extends beyond the window to show the full path.
I can reproduce the issue.
Created attachment 136769 [details]
Created attachment 136770 [details]
Thanks for confirming.
Created attachment 143804 [details]
Can confirm. use-sizehint.patch solves the issue for me.
Git commit 248030dbdfcfae9ff493a443808af334a88174cd by Harald Sitter.
Committed on 26/04/2022 at 19:45.
Pushed by sitter into branch 'master'.
correctly calculate fontmetrics
- use the fontmetrics of the target label not the application (makes no
difference but is practically more correct)
- use horizontalAdvance instead of boundingrect width. the latter is
relative to the rect coordinates and as such not nearly as straight
forward to use. horizontaladvance is the actual width the text will
occupy, it's what we intend to know here
M +2 -2 src/radialMap/item.cpp
*** Bug 456176 has been marked as a duplicate of this bug. ***