remove deprecated layoutmanager apis

work/spdx
Michail Vourlakos 4 years ago
parent 07d9d63338
commit c3e6f3c04f

@ -30,8 +30,8 @@ Ability.LayouterPrivate {
readonly property bool inNormalFillCalculationsState: animations.needBothAxis.count === 0
&& animations.needThickness.count === 0
&& (animations.needLength.count === 0 || root.dragInfo.entered) /*update when the user drags a plasmoid on the view*/
&& !appletsInParentChange
// && (!dragOverlay || (dragOverlay && !dragOverlay.pressed)) /*do not update during moving/dragging applets*/
// && !appletsInParentChange
readonly property bool maxMetricsInHigherPriority: root.minLength === root.maxLength

@ -45,7 +45,7 @@ Item {
property int lastVisibleIndex: -1
//! do not update during dragging/moving applets inConfigureAppletsMode
readonly property bool updateIsBlocked: false// (root.dragOverlay && root.dragOverlay.pressed) || appletsInParentChange
readonly property bool updateIsBlocked: appletsInParentChange //|| (root.dragOverlay && root.dragOverlay.pressed)
Binding{
target: appletsContainer

@ -212,8 +212,6 @@ MouseArea {
return;
}
root.layouter.appletsInParentChange = true;
var relevantApplet = mapFromItem(currentApplet, 0, 0);
var rootArea = mapFromItem(root, 0, 0);
@ -269,7 +267,6 @@ MouseArea {
root.moveAppletsBasedOnJustifyAlignment();
}
root.layouter.appletsInParentChange = false;
layouter.updateSizeForAppletsInFill();
}

@ -697,18 +697,10 @@ Item {
}
}
function addInternalViewSplitterInStart(pos){
addInternalViewSplitterInLayout(layoutsContainer.startLayout, pos);
}
function addInternalViewSplitterInMain(pos){
addInternalViewSplitterInLayout(layoutsContainer.mainLayout, pos);
}
function addInternalViewSplitterInEnd(pos){
addInternalViewSplitterInLayout(layoutsContainer.endLayout, pos);
}
function addInternalViewSplitterInLayout(area, pos){
var splittersCount = internalViewSplittersCount();
if(splittersCount<2){
@ -753,31 +745,6 @@ Item {
return false;
}
function checkLastSpacer() {
lastSpacer.parent = root
var expands = false;
if (isHorizontal) {
for (var container in layoutsContainer.mainLayout.children) {
var item = layoutsContainer.mainLayout.children[container];
if (item.Layout && item.Layout.fillWidth) {
expands = true;
}
}
} else {
for (var container in layoutsContainer.mainLayout.children) {
var item = layoutsContainer.mainLayout.children[container];
if (item.Layout && item.Layout.fillHeight) {
expands = true;
}
}
}
if (!expands) {
lastSpacer.parent = layoutsContainer.mainLayout
}
}
function internalViewSplittersCount(){
var splitters = 0;
for (var container in layoutsContainer.startLayout.children) {
@ -808,14 +775,6 @@ Item {
return LayoutManager;
}
function layoutManagerInsertBefore(place, item) {
LayoutManager.insertBefore(place, item);
}
function layoutManagerInsertAfter(place, item) {
LayoutManager.insertAfter(place, item);
}
function layoutManagerSave() {
LayoutManager.save();
}

Loading…
Cancel
Save