@ -146,27 +146,6 @@ MouseArea {
Containment.onAppletAdded: {
Containment.onAppletAdded: {
/ / A l l o w t h e p l a s m o i d e x p a n d e r t o k n o w i n w h a t w i n d o w i t w i l l b e
/ / A l l o w t h e p l a s m o i d e x p a n d e r t o k n o w i n w h a t w i n d o w i t w i l l b e
var plasmoidContainer = plasmoidItemComponent . createObject ( invisibleEntriesContainer , { "x" : x , "y" : y , "applet" : applet } ) ;
var plasmoidContainer = plasmoidItemComponent . createObject ( invisibleEntriesContainer , { "x" : x , "y" : y , "applet" : applet } ) ;
applet . parent = plasmoidContainer
applet . anchors . left = plasmoidContainer . left
applet . anchors . top = plasmoidContainer . top
applet . anchors . bottom = plasmoidContainer . bottom
applet . width = plasmoidContainer . height
applet . visible = true
plasmoidContainer . visible = true
/ / T h i s i s t o m a k e p r e l o a d i n g e f f e c t i v e , m i n i m i z e s t h e s c e n e c h a n g e s
if ( applet . fullRepresentationItem ) {
applet . fullRepresentationItem . width = expandedRepresentation . width
applet . fullRepresentationItem . width = expandedRepresentation . height
applet . fullRepresentationItem . parent = preloadedStorage ;
} else {
applet . fullRepresentationItemChanged . connect ( function ( ) {
applet . fullRepresentationItem . width = expandedRepresentation . width
applet . fullRepresentationItem . width = expandedRepresentation . height
applet . fullRepresentationItem . parent = preloadedStorage ;
} ) ;
}
}
}
/ / b e i n g t h e r e f o r c e s t h e i t e m s t o f u l l y l o a d , a n d t h e y w i l l b e r e p a r e n t e d i n t h e p o p u p o n e b y o n e , t h i s i t e m i s * n e v e r * v i s i b l e
/ / b e i n g t h e r e f o r c e s t h e i t e m s t o f u l l y l o a d , a n d t h e y w i l l b e r e p a r e n t e d i n t h e p o p u p o n e b y o n e , t h i s i t e m i s * n e v e r * v i s i b l e
@ -175,9 +154,6 @@ MouseArea {
visible: false
visible: false
}
}
Containment.onAppletRemoved: {
}
Connections {
Connections {
target: plasmoid
target: plasmoid
onUserConfiguringChanged: {
onUserConfiguringChanged: {
@ -187,7 +163,7 @@ MouseArea {
}
}
}
}
Connections {
Connections {
target: plasmoid . configuration
target: plasmoid . configuration
onExtraItemsChanged: plasmoid . nativeInterface . allowedPlasmoids = plasmoid . configuration . extraItems
onExtraItemsChanged: plasmoid . nativeInterface . allowedPlasmoids = plasmoid . configuration . extraItems
@ -260,18 +236,11 @@ MouseArea {
delegate: StatusNotifierItem { }
delegate: StatusNotifierItem { }
}
}
/ / N O T E : t h i s e x i s t s m o s t l y f o r n o t c a u s i n g r e f e r e n c e e r r o r s
property QtObject marginHints: QtObject {
property int left: 0
property int top: 0
property int right: 0
property int bottom: 0
}
}
}
CurrentItemHighLight {
CurrentItemHighLight {
visualParent: tasksRow
visualParent: tasksRow
target: root . activeApplet && root . activeApplet . parent . parent == tasksRow ? root.activeApplet.parent : root
target: root . activeApplet && root . activeApplet . parent && root . activeApplet . parent . inVisibleLayout ? root.activeApplet.parent : root
location: plasmoid . location
location: plasmoid . location
}
}
@ -327,14 +296,7 @@ MouseArea {
y: Math . round ( height / 2 - childrenRect . height / 2 )
y: Math . round ( height / 2 - childrenRect . height / 2 )
x: ( expander . visible && LayoutMirroring . enabled ? expander.width : 0 ) + Math . round ( width / 2 - childrenRect . width / 2 )
x: ( expander . visible && LayoutMirroring . enabled ? expander.width : 0 ) + Math . round ( width / 2 - childrenRect . width / 2 )
readonly property var iconSize: root . itemSize + units . smallSpacing
/ / D o s p a c i n g w i t h m a r g i n s , t o c o r r e c t l y c o m p u t e t h e n u m b e r o f l i n e s
property QtObject marginHints: QtObject {
property int left: Math . round ( units . smallSpacing / 2 )
property int top: Math . round ( units . smallSpacing / 2 )
property int right: Math . round ( units . smallSpacing / 2 )
property int bottom: Math . round ( units . smallSpacing / 2 )
}
/ / a d d d o e s n ' t s e e m t o w o r k u s e d i n c o n j u n c t i o n w i t h s t a c k B e f o r e / s t a c k A f t e r
/ / a d d d o e s n ' t s e e m t o w o r k u s e d i n c o n j u n c t i o n w i t h s t a c k B e f o r e / s t a c k A f t e r
/ * a d d : T r a n s i t i o n {
/ * a d d : T r a n s i t i o n {