[Differential] [Request, 20 lines] D2532: [Panel Containment] Fix re-arranging applets in right-to-left mode

broulik (Kai Uwe Broulik) noreply at phabricator.kde.org
Mon Aug 22 19:03:38 UTC 2016


broulik created this revision.
broulik added reviewers: Plasma, safaalfulaij.
broulik set the repository for this revision to rPLASMADESKTOP Plasma Desktop.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  While dragging a widget, it is reparented to "root" so it can be moved freely without the other applets reacting on that. However, in right-to-left mode, the toolbox is on the left side, the coordinate system of the applet parented to "root" did not match with the applets in "currentLayout".
  
  This happened to work in left-to-right as there "currentLayout" was at coordinates 0,0. Instead of manually fiddling the margins into the positioning, just reparent the widget to another Item which is anchors.fill'd to the layout (and thus has its margins) and let QML figure it out.

TEST PLAN
  I can now properly re-arrange widgets in a horizontal panel with
  
    plasmashell -reverse
  
  When the applet is over the right-most widget (Kickoff in the default case) it glitches slightly but that's still way better than placing the applet at seemingly random positions when letting go of the mouse pointer.

REPOSITORY
  rPLASMADESKTOP Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D2532

AFFECTED FILES
  containments/panel/contents/ui/ConfigOverlay.qml
  containments/panel/contents/ui/main.qml

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: broulik, #plasma, safaalfulaij
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160822/d315745a/attachment.html>


More information about the Plasma-devel mailing list