@@ -85,16 +85,13 @@ Item {
8585 height: root.initialHeight
8686 width: root.initialWidth
8787 anchors.centerIn: root.scaleTo == "fit" ? parent : undefined
88−
88+ active: useUbuntuShape
8989 opacity: 0
9090 visible: opacity != 0
91−
92− sourceComponent: useUbuntuShape ? ubuntuShapeComponent : itemComponent
91+ sourceComponent: UbuntuShape {}
9392 onLoaded: {
94− if (sourceComponent === ubuntuShapeComponent) {
95− item.image = image;
96− item.borderSource = Qt.binding(function() { return root.borderSource })
97− }
93+ item.image = image;
94+ item.borderSource = Qt.binding(function() { return root.borderSource })
9895 }
9996
10097 Image {
@@ -120,11 +117,6 @@ Item {
120117 }
121118 }
122119
123− Component {
124− id: itemComponent
125− Item {}
126− }
127−
128120 Component {
129121 id: ubuntuShapeComponent
130122 UbuntuShape {}