@ -160,21 +160,24 @@ Item {
index = - 1 ;
index = - 1 ;
for ( var i = 0 ; i < layoutsContainer . startLayout . count ; ++ i ) {
for ( var i = 0 ; i < layoutsContainer . startLayout . count ; ++ i ) {
if ( layoutsContainer . startLayout . children [ i ] === appletItem ) {
var child = layoutsContainer . startLayout . children [ i ] ;
if ( child === appletItem ) {
index = layoutsContainer . startLayout . beginIndex + i ;
index = layoutsContainer . startLayout . beginIndex + i ;
break ;
break ;
}
}
}
}
for ( var i = 0 ; i < layoutsContainer . mainLayout . count ; ++ i ) {
for ( var i = 0 ; i < layoutsContainer . mainLayout . count ; ++ i ) {
if ( layoutsContainer . mainLayout . children [ i ] === appletItem ) {
var child = layoutsContainer . mainLayout . children [ i ] ;
if ( child === appletItem ) {
index = layoutsContainer . mainLayout . beginIndex + i ;
index = layoutsContainer . mainLayout . beginIndex + i ;
break ;
break ;
}
}
}
}
for ( var i = 0 ; i < layoutsContainer . endLayout . count ; ++ i ) {
for ( var i = 0 ; i < layoutsContainer . endLayout . count ; ++ i ) {
if ( layoutsContainer . endLayout . children [ i ] === appletItem ) {
var child = layoutsContainer . endLayout . children [ i ] ;
if ( child === appletItem ) {
/ / c r e a t e a v e r y h i g h i n d e x i n o r d e r t o n o t n e e d t o e x c h a n g e h o v e r i n g m e s s a g e s
/ / c r e a t e a v e r y h i g h i n d e x i n o r d e r t o n o t n e e d t o e x c h a n g e h o v e r i n g m e s s a g e s
/ / b e t w e e n l a y o u t s C o n t a i n e r . m a i n L a y o u t a n d l a y o u t s C o n t a i n e r . e n d L a y o u t
/ / b e t w e e n l a y o u t s C o n t a i n e r . m a i n L a y o u t a n d l a y o u t s C o n t a i n e r . e n d L a y o u t
index = layoutsContainer . endLayout . beginIndex + i ;
index = layoutsContainer . endLayout . beginIndex + i ;
@ -182,7 +185,6 @@ Item {
}
}
}
}
if ( appletItem . latteApplet ) {
if ( appletItem . latteApplet ) {
if ( index === layoutsContainer . startLayout . beginIndex || index === layoutsContainer . mainLayout . beginIndex || index === layoutsContainer . endLayout . beginIndex )
if ( index === layoutsContainer . startLayout . beginIndex || index === layoutsContainer . mainLayout . beginIndex || index === layoutsContainer . endLayout . beginIndex )
latteApplet . disableLeftSpacer = false ;
latteApplet . disableLeftSpacer = false ;
@ -237,6 +239,12 @@ Item {
}
}
}
}
function slotDestroyInternalViewSplitters ( ) {
if ( isInternalViewSplitter ) {
destroy ( ) ;
}
}
/ / ! p o s i n g l o b a l r o o t p o s i t i o n i n g
/ / ! p o s i n g l o b a l r o o t p o s i t i o n i n g
function containsPos ( pos ) {
function containsPos ( pos ) {
var relPos = root . mapToItem ( appletItem , pos . x , pos . y ) ;
var relPos = root . mapToItem ( appletItem , pos . x , pos . y ) ;
@ -330,6 +338,7 @@ Item {
checkIndex ( ) ;
checkIndex ( ) ;
root . updateIndexes . connect ( checkIndex ) ;
root . updateIndexes . connect ( checkIndex ) ;
root . clearZoomSignal . connect ( clearZoom ) ;
root . clearZoomSignal . connect ( clearZoom ) ;
root . destroyInternalViewSplitters . connect ( slotDestroyInternalViewSplitters ) ;
}
}
Component.onDestruction: {
Component.onDestruction: {
@ -348,6 +357,7 @@ Item {
root . updateIndexes . disconnect ( checkIndex ) ;
root . updateIndexes . disconnect ( checkIndex ) ;
root . clearZoomSignal . disconnect ( clearZoom ) ;
root . clearZoomSignal . disconnect ( clearZoom ) ;
root . destroyInternalViewSplitters . disconnect ( slotDestroyInternalViewSplitters ) ;
if ( appletItem . latteApplet ) {
if ( appletItem . latteApplet ) {
appletItem . latteApplet . signalAnimationsNeedBothAxis . disconnect ( slotAnimationsNeedBothAxis ) ;
appletItem . latteApplet . signalAnimationsNeedBothAxis . disconnect ( slotAnimationsNeedBothAxis ) ;