Bug 480829

Summary: Can't drag video from project bin to timeline track, after adding subtitle
Product: [Applications] kdenlive Reporter: red_Arti <jijiliu35>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby, gerrysw11
Priority: NOR    
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: drag-clip-bug-qt6
Clip_after_Subtitle

Description red_Arti 2024-02-04 06:20:29 UTC
Created attachment 165524 [details]
drag-clip-bug-qt6

SUMMARY
If there's subtitle, can't directly drag video clip from project bin to track. The track disallows drop.
Only after the mouse touches status bar, the track allows drop.

STEPS TO REPRODUCE
1. Create project
2. Add a subtitle
3. Try to drag a video clip from project bin to timeline

OBSERVED RESULT
Timeline track refuse mouse drop. So you can't add video clip to it.
If you move drag the video down to status bar, then back to timeline , then it allows.

EXPECTED RESULT
Timeline track accepts mouse drop

SOFTWARE/OS VERSIONS
24.04.70.  kdenlive-master-7375-linux-gcc-x86_64.AppImage (git 8870cce9) Qt6
Notice: The Qt5 build doesn't have this bug (same commit). Just Qt6

My system:
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Graphics Platform: X11


ADDITIONAL INFORMATION
Comment 1 emohr 2024-02-05 19:59:45 UTC
Created attachment 165577 [details]
Clip_after_Subtitle

Thank you for reporting. I can confirm the issue following your steps with just a color clip. Attached the DebugView output.
Comment 2 emohr 2024-02-05 20:02:01 UTC
Tested with Windows Kdenlive-master-qt6.
Comment 3 Jean-Baptiste Mardelle 2024-02-06 07:59:13 UTC
Git commit 9b172c9ba14a5fce575132d94a91cee577134380 by Jean-Baptiste Mardelle.
Committed on 06/02/2024 at 07:58.
Pushed by mardelle into branch 'release/24.02'.

Fix Qt6 dragging clips with subtitle track visible

M  +16   -12   src/timeline2/view/qml/timeline.qml

https://invent.kde.org/multimedia/kdenlive/-/commit/9b172c9ba14a5fce575132d94a91cee577134380
Comment 4 Jean-Baptiste Mardelle 2024-02-06 08:08:06 UTC
*** Bug 480918 has been marked as a duplicate of this bug. ***
Comment 5 emohr 2024-02-06 17:17:27 UTC
With latest commit the issue is fixed on Qt6.