|
|
|
@ -301,38 +301,50 @@ Item{
|
|
|
|
|
|
|
|
|
|
Item{
|
|
|
|
|
id:_wrapperContainer
|
|
|
|
|
|
|
|
|
|
width: root.isHorizontal ? _length : _thickness
|
|
|
|
|
height: root.isHorizontal ? _thickness : _length
|
|
|
|
|
opacity: appletShadow.active ? 0 : 1
|
|
|
|
|
|
|
|
|
|
property int _length: {
|
|
|
|
|
if (appletItem.isAutoFillApplet && (appletItem.maxAutoFillLength>-1)){
|
|
|
|
|
return wrapper.length;
|
|
|
|
|
}
|
|
|
|
|
property int _length:0 // through Binding to avoid binding loops
|
|
|
|
|
property int _thickness:0 // through Binding to avoid binding loops
|
|
|
|
|
|
|
|
|
|
readonly property int appliedEdgeMargin: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter) {
|
|
|
|
|
return wrapper.layoutLength;
|
|
|
|
|
return appletItem.metrics.margin.screenEdge + appletItem.metrics.margin.thickness;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return wrapper.zoomScaleLength * wrapper.layoutLength;
|
|
|
|
|
return appletItem.screenEdgeMarginSupported ? 0 : appletItem.metrics.margin.screenEdge;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property int _thickness: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter) {
|
|
|
|
|
return wrapper.layoutThickness;
|
|
|
|
|
}
|
|
|
|
|
Binding {
|
|
|
|
|
target: _wrapperContainer
|
|
|
|
|
property: "_thickness"
|
|
|
|
|
when: !visibilityManager.inTempHiding
|
|
|
|
|
value: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter) {
|
|
|
|
|
return wrapper.layoutThickness;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var wrapperContainerThickness = wrapper.zoomScaleThickness * (appletItem.metrics.totals.thickness);
|
|
|
|
|
return appletItem.screenEdgeMarginSupported ? wrapperContainerThickness + appletItem.metrics.margin.screenEdge : wrapperContainerThickness;
|
|
|
|
|
var wrapperContainerThickness = wrapper.zoomScaleThickness * (appletItem.metrics.totals.thickness);
|
|
|
|
|
return appletItem.screenEdgeMarginSupported ? wrapperContainerThickness + appletItem.metrics.margin.screenEdge : wrapperContainerThickness;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly property int appliedEdgeMargin: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter) {
|
|
|
|
|
return appletItem.metrics.margin.screenEdge + appletItem.metrics.margin.thickness;
|
|
|
|
|
}
|
|
|
|
|
Binding {
|
|
|
|
|
target: _wrapperContainer
|
|
|
|
|
property: "_length"
|
|
|
|
|
when: !visibilityManager.inTempHiding
|
|
|
|
|
value: {
|
|
|
|
|
if (appletItem.isAutoFillApplet && (appletItem.maxAutoFillLength>-1)){
|
|
|
|
|
return wrapper.length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return appletItem.screenEdgeMarginSupported ? 0 : appletItem.metrics.margin.screenEdge;
|
|
|
|
|
if (appletItem.isInternalViewSplitter) {
|
|
|
|
|
return wrapper.layoutLength;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return wrapper.zoomScaleLength * wrapper.layoutLength;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///Secret MouseArea to be used by the folder widget
|
|
|
|
|