Commit b22c9cc2 authored by Marco Martin's avatar Marco Martin

better changing between appletslayout and the other views

parent 55d982ef
......@@ -169,9 +169,14 @@ Item {
raiseContainer(container);
appletsLayout.hidePlaceHolder();
if (container == appletsLayout) {
spacer.visible = false;
appletsLayout.releaseSpace(item);
putItemInDragSpace(item);
var pos = appletsLayout.mapFromItem(item, 0, 0);
appletsLayout.showPlaceHolderAt(Qt.rect(pos.x, pos.y, item.width, item.height));
return;
}
......@@ -205,7 +210,11 @@ Item {
raiseContainer(container);
if (container == appletsLayout) {
var pos = appletsLayout.mapFromItem(item, 0, 0);
item.parent = appletsLayout;
item.x = pos.x;
item.y = pos.y;
appletsLayout.hidePlaceHolder();
appletsLayout.positionItem(item);
return;
}
......
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