Check icon positions after move
ClosedPublic

Authored by McPain on Dec 26 2018, 2:54 PM.

Details

Summary

BUG: 402574

When we're moving a bunch of icons to the area which is already busy, we didn't check whether we're moving icons to different places.

Now we check additionally if we're moving icon to the place already taken by previously moved icons.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
McPain created this revision.Dec 26 2018, 2:54 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 26 2018, 2:54 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
McPain requested review of this revision.Dec 26 2018, 2:54 PM

Looks sensible to me. Good stuff.
Wait a week to allow Eike a chance to comment, otherwise consider this a ship it!

McPain updated this revision to Diff 48238.Dec 27 2018, 8:07 AM

Fixed condition mistake

McPain added inline comments.Dec 27 2018, 8:11 AM
containments/desktop/plugins/folder/positioner.cpp
418

AFAIK, the first part of condition is "check if to is blank and if it's not, check whether we're not moving icon to itself, and if we do, it's alright"
The second part is "check if we're already moving another icon to to and if we do so, try to+1"

hein accepted this revision.Jan 2 2019, 7:39 AM
This revision is now accepted and ready to land.Jan 2 2019, 7:39 AM
This revision was automatically updated to reflect the committed changes.