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

make reorder work

parent f3b1522b
......@@ -49,7 +49,6 @@ ContainmentLayoutManager.ItemContainer {
onDragActiveChanged: {
if (dragActive) {
launcherDragManager.showSpacer(delegate, 0, 0);
print("AAAH, BENGALAAAAH")
return;
}
......
......@@ -90,12 +90,13 @@ QtObject {
raiseContainer(container);
var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX);
if (!child) {
return;
}
changeContainer(item, container);
if (container == appletsLayout) {
changeContainer(item, container);
return;
}
......@@ -107,6 +108,11 @@ QtObject {
} else {
plasmoid.nativeInterface.orderItems(child, spacer);
}
changeContainer(item, container);
print(spacer.parent+" "+child.parent)
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