Bug 478460

Summary: Search result category headers don't display properly
Product: [Applications] audiotube Reporter: Nova Fischer <dvantum>
Component: generalAssignee: Jonah BrĂ¼chert <jbb>
Status: REPORTED ---    
Severity: normal Keywords: qt6
Priority: NOR    
Version First Reported In: 24.01.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Image of Audiotube interface missing search result category headers.

Description Nova Fischer 2023-12-13 00:30:18 UTC
Created attachment 164121 [details]
Image of Audiotube interface missing search result category headers.

SUMMARY
Search result category headers (such as "Albums", "Songs", "Top results", ...) don't seem to display properly.

STEPS TO REPRODUCE
1. Run Audiotube (ensure you built from master).
2. Type in any search term into the search bar.
3. Audiotube will refuse to display headers above the respective search result categories.
4. The Console will display 'qrc:/SearchPage.qml:21:27: QML ListSectionHeader: Binding loop detected for property "implicitWidth"' 6 times.

OBSERVED RESULT
Search result categories are separated by an empty space (see attachment).

EXPECTED RESULT
Search result categories have a proper header above them.

SOFTWARE/OS VERSIONS
Linux Kernel Version: 6.6.6-arch1-1 (64-bit)
Graphics Platform: Wayland
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
I used kdesrc-build to actually build audiotube.
Adding the line "width: parent.width" into src/contents/ui/SearchPage.qml just before line 23 (into the section.delegate) seems to be a workaround for this issue.