@@ -85,16 +85,13 @@ Item {
85 height: root.initialHeight
85 height: root.initialHeight
86 width: root.initialWidth
86 width: root.initialWidth
87 anchors.centerIn: root.scaleTo == "fit" ? parent : undefined
87 anchors.centerIn: root.scaleTo == "fit" ? parent : undefined
88−
88+ active: useUbuntuShape
89 opacity: 0
89 opacity: 0
90 visible: opacity != 0
90 visible: opacity != 0
91−
91+ sourceComponent: UbuntuShape {}
92− sourceComponent: useUbuntuShape ? ubuntuShapeComponent : itemComponent
93 onLoaded: {
92 onLoaded: {
94− if (sourceComponent === ubuntuShapeComponent) {
95− item.image = image;
93+ item.image = image;
96− item.borderSource = Qt.binding(function() { return root.borderSource })
94+ item.borderSource = Qt.binding(function() { return root.borderSource })
@@ -120,11 +117,6 @@ Item {
128 Component {
120 Component {
129 id: ubuntuShapeComponent
121 id: ubuntuShapeComponent
130 UbuntuShape {}
122 UbuntuShape {}