mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
better changing between appletslayout and the other views
This commit is contained in:
parent
55d982ef07
commit
b22c9cc219
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue