Bug 487523 - Improve legend layout
Summary: Improve legend layout
Status: REPORTED
Alias: None
Product: frameworks-kquickcharts
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Arjen Hiemstra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-25 09:45 UTC by popov895
Modified: 2024-05-25 09:46 UTC (History)
4 users (show)

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


Attachments
Legend (67.81 KB, image/png)
2024-05-25 09:45 UTC, popov895
Details

Note You need to log in before you can comment on or make changes to this bug.
Description popov895 2024-05-25 09:45:03 UTC
Created attachment 169810 [details]
Legend

SUMMARY

Currently, the legend layout doesn't use the available space very well. As you can see in the attached screenshot, the content of the legend can easily fit in 2 rows, while for some reason 4 rows are used. After a quick look at the LegendLayout code, I noticed that preferredWidth of the legend delegate is not taken into account anywhere when laying out the legend content. Perhaps that's the problem?

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20240523
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
KDE Gear Version: 24.02.2
Qt Version: 6.7.0