Commit 3ce063b5 authored by Marco Martin's avatar Marco Martin

make reorder work

parent f3b1522b
...@@ -49,7 +49,6 @@ ContainmentLayoutManager.ItemContainer { ...@@ -49,7 +49,6 @@ ContainmentLayoutManager.ItemContainer {
onDragActiveChanged: { onDragActiveChanged: {
if (dragActive) { if (dragActive) {
launcherDragManager.showSpacer(delegate, 0, 0); launcherDragManager.showSpacer(delegate, 0, 0);
print("AAAH, BENGALAAAAH")
return; return;
} }
......
...@@ -90,12 +90,13 @@ QtObject { ...@@ -90,12 +90,13 @@ QtObject {
raiseContainer(container); raiseContainer(container);
var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX); var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX);
if (!child) { if (!child) {
return; return;
} }
changeContainer(item, container);
if (container == appletsLayout) { if (container == appletsLayout) {
changeContainer(item, container);
return; return;
} }
...@@ -107,6 +108,11 @@ QtObject { ...@@ -107,6 +108,11 @@ QtObject {
} else { } else {
plasmoid.nativeInterface.orderItems(child, spacer); plasmoid.nativeInterface.orderItems(child, spacer);
} }
changeContainer(item, container);
print(spacer.parent+" "+child.parent)
spacer.visible = true; spacer.visible = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment