on xenial help sign in
different approach
4fcf8c6Andrea Cimitan
plugins/Dash/CardCreator.js−1
@@ -69,7 +69,6 @@ var kArtUbuntuShapeCode = 'UbuntuShape { \n\
69 }';
69 }';
70
70
71var kArtProportionalShapeCode = 'ProportionalShape { \n\
71var kArtProportionalShapeCode = 'ProportionalShape { \n\
72− objectName: "artShapeProportionalShape"; \n\
73 anchors.fill: parent; \n\
72 anchors.fill: parent; \n\
74 source: artImage; \n\
73 source: artImage; \n\
75 aspect: UbuntuShape.DropShadow; \n\
74 aspect: UbuntuShape.DropShadow; \n\
tests/plugins/Dash/cardcreator/3.res−1
@@ -31,7 +31,6 @@ Item {
31 visible: image.status == Image.Ready;
31 visible: image.status == Image.Ready;
32 readonly property alias image: artImage;
32 readonly property alias image: artImage;
33 ProportionalShape {
33 ProportionalShape {
34− objectName: "artShapeProportionalShape";
35 anchors.fill: parent;
34 anchors.fill: parent;
36 source: artImage;
35 source: artImage;
37 aspect: UbuntuShape.DropShadow;
36 aspect: UbuntuShape.DropShadow;
tests/plugins/Dash/cardcreator/3.res.cardcreator−1
@@ -30,7 +30,6 @@ Item {
30 visible: image.status == Image.Ready;
30 visible: image.status == Image.Ready;
31 readonly property alias image: artImage;
31 readonly property alias image: artImage;
32 ProportionalShape {
32 ProportionalShape {
33− objectName: "artShapeProportionalShape";
34 anchors.fill: parent;
33 anchors.fill: parent;
35 source: artImage;
34 source: artImage;
36 aspect: UbuntuShape.DropShadow;
35 aspect: UbuntuShape.DropShadow;
tests/qmltests/Dash/tst_Dash.qml+2−2
@@ -650,8 +650,8 @@ Item {
650
650
651 scrollToCategory("dashCategorypredefined");
651 scrollToCategory("dashCategorypredefined");
652 var tile = getCategoryDelegate("predefined", 2);
652 var tile = getCategoryDelegate("predefined", 2);
653− var proportionalShape = findChild(tile, "artShapeProportionalShape");
653+ var proportionalShape = findChildsByType(tile, "UCProportionalShape");
654− verify(proportionalShape != undefined);
654+ compare(proportionalShape.length, 1);
655 }
655 }
656
656
657 function test_tempScopeItemXOnResize()
657 function test_tempScopeItemXOnResize()