Bug 396385 - Tooltip doesn't wrap at window edge; underflows instead
Summary: Tooltip doesn't wrap at window edge; underflows instead
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.47.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
Depends on:
Reported: 2018-07-10 22:21 UTC by Nate Graham
Modified: 2019-01-16 21:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.55

Overflowing text on long tooltip (73.44 KB, image/png)
2018-07-10 22:21 UTC, Nate Graham

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2018-07-10 22:21:27 UTC
Created attachment 113871 [details]
Overflowing text on long tooltip

When you add a QtQuick Tooltip to a user interface element, when its text is very long, it doesn't wrap at the edge of the window and become a multi-line Tooltip; instead it overflows. See attached screenshot.
Comment 1 Christoph Feck 2018-08-02 19:22:38 UTC
QtWidget tooltips automatically word-wrap; QtQuick tooltips should do the same.
Comment 2 Nate Graham 2019-01-16 21:44:54 UTC
Patch: https://phabricator.kde.org/D18306
Comment 3 Nate Graham 2019-01-16 21:59:23 UTC
Git commit fbfdd78324f6be39a752a3b848dad37d15708d6c by Nate Graham.
Committed on 16/01/2019 at 21:56.
Pushed by ngraham into branch 'master'.

Word-wrap long tooltips

This patch fixes long tooltips so that they word-wrap instead of overflowing.
FIXED-IN: 5.55

Test Plan: {F6552271, size=full}

Reviewers: mart, #plasma, #kirigami, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

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

M  +1    -0    org.kde.desktop/ToolTip.qml