Bug 365010 - Allow re-positioning items in the grid in widget mode (currently this feature is implemented only in the containment representation i.e. on the desktop)
Summary: Allow re-positioning items in the grid in widget mode (currently this feature...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 17:57 UTC by Roman Bysh
Modified: 2020-01-23 18:54 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Bysh 2016-07-02 17:57:59 UTC
I am trying to place my icons in the order that I want without them reshuffling in alphabetical order. I cannot move an icons to the next row due to it snapping to grid and being locked in its position.

The only way I was able to place my icons in the order that I wanted was to delete all of the icons from the folder plasmoid. Next I would click and drag the icons to the folder plasmoid in the order that I would like them to appear.

Reproducible: Always

Steps to Reproduce:
1. Move one of the existing icons in between two other icons
2.
3.

Actual Results:  
The existing icons on the folder plasmoid are set in a locked to grid position.

Expected Results:  
I should be able to place icon on any row and move it off grid so the icons appear in an order that i prefer.
Comment 1 Eike Hein 2016-07-03 09:16:10 UTC
Is that in widget mode (so a rectangle on the desktop) or in desktop mode (so Folder View as the desktop surface itself)?
Comment 2 Roman Bysh 2016-07-03 20:03:05 UTC
Yes. It is in widget mode. 
I always have a default activity that is set in Plasma Mode and a second one that is in Folder View mode.
Comment 3 Eike Hein 2016-07-04 08:11:09 UTC
Ok, so the problem here is that free icon dragging is currently only allowed in desktop mode, but not in widget mode. This is not a hard technical limitation. The reason it is that way is that free positioning is costly performance-wise, and not having it in the mix makes the view much simpler and enables it to handle much larger directories much easier. With the desktop we can make the assumption that it's not likely to be used to show a huge directory by most users, but with the widget I wanted it to be snappy when used that way.

Basically there's three options:
1. Find ways to make the free-positioning mode scale better, to avoid the performance penalty, then enable free positioning in widget mode
2. Enable free positioning anyway, hoping the performance penalty doesn't matter for most users, then spend time on #1 later
3. Make it an option

#3 is super undesirable because adding options that could (maybe) be avoided with other work is lazy. #1 is a resource/manpower question but most desirable. #2 is the compromise and hard to make a decision on without good metrics on how users use Folder View. I came down on the safe side, but I'm open to reevaluating that.
Comment 4 Roman Bysh 2016-07-05 19:05:07 UTC
I could see having the widget set in this mode by default. However,for  the user that doesn't like to have dozens of icons on his or her desktop switches to using the folder widget.

The folder widget from KDE4 allowed users to move icons around to their hearts content. This is the open-source approach. Whilst this folder widget in Plasma 5 disallows users to move their icons wherever they want. This is the closed-source mindset. At least for now LOL ;-(

Please please reconsider bringing back the extra features from KDE4 that made it so great.
I'll buy you a German ale next time I'm in town. ;-)
Comment 5 Roman Bysh 2016-07-05 19:12:06 UTC
Darn. I clicked on the Save Changes button too soon.

I choose #2 . And, I don't have any performance issues with it. 
Although, I do have severe performance issues with kwin.
Comment 6 Roman Bysh 2016-07-06 01:07:35 UTC
Eike,

In additional to your C++ code, are you using a qml file in /usr/share/plasma/plasmoids/ ?
Comment 7 Eike Hein 2016-07-06 16:41:46 UTC
The QML side is in $PREFIX/share/plasma/plasmoids/org.kde.desktopcontainment/
Comment 8 Roman Bysh 2016-07-06 18:58:28 UTC
Thank you. The qml files are a great idea and easy to understand.