Bug 389963

Summary: Tooltips take the whole horizontal screen when showing long download url
Product: [Applications] dolphin Reporter: josip ponjavić <josipponjavic>
Component: view-engine: tooltipAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christof.groschke, en17cs301259, mikhail.krutov, nate
Priority: NOR Keywords: junior-jobs, usability
Version: 17.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 19.04.0
Sentry Crash Report:
Attachments: two tooltip examples, short and long url
Maybe something like ...

Description josip ponjavić 2018-02-06 18:07:29 UTC
Created attachment 110372 [details]
two tooltip examples, short and long url

Download a video from youtube and then hover over it in dolphin and the tooltip takes a lot of screen space.

In attachment are two examples, one showing a normal tooltip with short url and the other with long url.
Comment 1 Nate Graham 2018-03-29 21:25:26 UTC
This was made visible by implementing the feature requested in Bug 386261. We should find some way to clip ugly URLs or only display a substring or something.
Comment 2 Christof Groschke 2018-04-02 13:10:43 UTC
Created attachment 111783 [details]
Maybe something like ...

What about showing only the domain address and than as many parts of the subdirs as possible and cutting the rest to something like this ?

https://neon.kde.org/download/.../.../

Limiting the whole URL to an absolute maximum. Just a quick shot, I have added a really trivial example.
Comment 3 Mike Krutov 2019-03-23 00:41:16 UTC
Hi!

I've created a patch for this issue here:

https://phabricator.kde.org/D19988
Comment 4 Nate Graham 2019-03-24 18:41:25 UTC
Git commit 4623e6e5ec5308485afc2a0061f8ee0e4dafd4b1 by Nate Graham, on behalf of Mikhail Krutov.
Committed on 24/03/2019 at 18:00.
Pushed by ngraham into branch 'Applications/19.04'.

Fix lengthy URLs in tooltips

Summary: BUG: 389963

Test Plan:
To reproduce the issue (https://bugs.kde.org/show_bug.cgi?id=389963):

xattr -w user.xdg.origin.url "VeryLongUrlWithoutSpaces" file.name

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, elvisangelaccio, broulik, #baloo

Tags: #baloo

Differential Revision: https://phabricator.kde.org/D19988

M  +12   -4    src/widgetfactory.cpp

https://commits.kde.org/baloo-widgets/4623e6e5ec5308485afc2a0061f8ee0e4dafd4b1