52 + property bool shouldCreateHighlight: date.isSameDay(DateExt.today()) && isCurrentMonth 53 + property var hightlightObj; 54 + 55 + onShouldCreateHighlightChanged: { 56 + if( shouldCreateHighlight ) { 57 + hightlightObj = highLightComp.createObject(dateRootItem); 58 + hightlightObj.z = hightlightObj.z -1; 59 + } else { 60 + if( hightlightObj) { 61 + hightlightObj.destroy(); 62 + } 63 + }
Please use a Loader element instead of manually instantiating/destroying objects.
« Back to merge proposal
52 + property bool shouldCreateHig hlight: date.isSameDay( DateExt. today() ) && isCurrentMonth ighlightChanged : { hlight ) { createObject( dateRootItem) ; destroy( );
53 + property var hightlightObj;
54 +
55 + onShouldCreateH
56 + if( shouldCreateHig
57 + hightlightObj = highLightComp.
58 + hightlightObj.z = hightlightObj.z -1;
59 + } else {
60 + if( hightlightObj) {
61 + hightlightObj.
62 + }
63 + }
Please use a Loader element instead of manually instantiating/ destroying objects.