Bug 474419

Summary: Add option to prevent panel entries from moving (KFilePlacesView)
Product: [Frameworks and Libraries] frameworks-kio Reporter: svlmrc
Component: PlacesAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: kde, kdelibs-bugs-null, meven, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The panel with entries moving

Description svlmrc 2023-09-11 17:42:33 UTC
Created attachment 161563 [details]
The panel with entries moving

So it is pretty annoying to be that the entries in the Places sidepanel in Dolphin move too easily, even when what I want is them to be locked in place (because most of the time I just want to click and select them, not move them).
Attached is the panel I'm referring to.

So an option in the panel header and in every entry's right-click context menu to lock/unlock them would be nice.

The behavior IMHO should be:
(when locked):
- left-click selects the element;
- keeping it clicked, hovering to another element selects that element (but doesn't trigger the click action);

(when unlocked):
- the current behavior


My workaround/proof of concept of what I mean with the behavior when locked is adding:
    setDragEnabled(false);
to Dolphin's 
src/panels/places/placespanel.cpp
at the very beginning of the constructor.

This would give an idea of the behavior with "locked" enabled.

As far as I can see, the relevant class should be KFilePlacesView (which is PlacesPanel's parent), but may be wrong.