Bug 481817 - ContextualHelpButton tooltips are larger than necessary having too much space on the right side
Summary: ContextualHelpButton tooltips are larger than necessary having too much space...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.245.0
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-25 16:44 UTC by postix
Modified: 2024-04-14 14:06 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2


Attachments
Screenshot (126.48 KB, image/png)
2024-02-25 16:44 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2024-02-25 16:44:16 UTC
Created attachment 166094 [details]
Screenshot

SUMMARY

The tooltip for Double Click interval is too large for its text. Please see the screenshot.


SOFTWARE/OS VERSIONS
Operating System: Fedora-KDE-Live-x86_64-Rawhide-20240225.n.0.iso
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.0-rc5
Graphics Platform: Wayland
Graphics Processor: llvmpipe
VirtualBox 7.0 on openSUSE TW
Scaling: 2.0
Comment 1 postix 2024-02-25 16:45:27 UTC
Looks like this bug pre-existed already in Plasma 5.27
Comment 2 Doug 2024-02-25 18:26:50 UTC
It's the same on all the other tooltips in System Settings, from what I can see.

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Pro WX 3200 Series
Comment 3 Nate Graham 2024-02-26 22:24:41 UTC
Yup. It's a Qt bug: https://bugreports.qt.io/browse/QTBUG-83630.

It looks like it's not actually fixed. :/
Comment 4 Ismael Asensio 2024-02-26 22:44:18 UTC
> It looks like it's not actually fixed. :/

From what I've been debugging, the bug on Qt side did actually get fixed. 

But we have a different bug in qqc2-desktop-style introduced to fix a different one. I'll reopen and move the bug there. 

The ToolTip API make the solution not straightforward because it will affect some of its current usages (i.e Kickoff depends on this bug to have nice tooltips), so we need some synchronize work on different repos not to break stuff.
Comment 5 Nate Graham 2024-02-27 19:10:32 UTC
Fascinating!

If we have to break Kickoff's tooltips for a bit to fix everyone else's, I think that's an acceptable trade-off. And if we make the change for a frameworks release that's close to Plasma 6.1, then we can get any needed Kickoff fix into that and hopefully it won't be broken for more than a few days.
Comment 6 Nate Graham 2024-04-14 14:05:00 UTC
Git commit 9514177efafef9e8954b8329a7bd79e665b3b379 by Nate Graham, on behalf of Shubham Arora.
Committed on 14/04/2024 at 14:04.
Pushed by ngraham into branch 'master'.

ContextualHelpButton: remove excess space from tooltip

This manual size limitation was needed in Qt5, but Qt6 includes it
automatically, so now it's just causing problems for us.
FIXED-IN: 6.2

M  +0    -3    src/controls/ContextualHelpButton.qml

https://invent.kde.org/frameworks/kirigami/-/commit/9514177efafef9e8954b8329a7bd79e665b3b379