on xenial help sign in
== -> ===
18b5d2dAlbert Astals Cid
plugins/Dash/CardCreator.js+7−7
@@ -25,7 +25,7 @@ var kBackgroundLoaderCode = 'Loader {\n\
25 objectName: "backgroundLoader"; \n\
25 objectName: "backgroundLoader"; \n\
26 anchors.fill: parent; \n\
26 anchors.fill: parent; \n\
27 asynchronous: %3; \n\
27 asynchronous: %3; \n\
28− visible: status == Loader.Ready; \n\
28+ visible: status === Loader.Ready; \n\
29 sourceComponent: UbuntuShape { \n\
29 sourceComponent: UbuntuShape { \n\
30 objectName: "background"; \n\
30 objectName: "background"; \n\
31 radius: "medium"; \n\
31 radius: "medium"; \n\
@@ -90,11 +90,11 @@ var kArtShapeHolderCode = 'Loader { \n\
90 onCardArtChanged: { if (item) { item.image.source = cardArt; } } \n\
90 onCardArtChanged: { if (item) { item.image.source = cardArt; } } \n\
91 active: cardArt != ""; \n\
91 active: cardArt != ""; \n\
92 asynchronous: %5; \n\
92 asynchronous: %5; \n\
93− visible: status == Loader.Ready; \n\
93+ visible: status === Loader.Ready; \n\
94 sourceComponent: Item { \n\
94 sourceComponent: Item { \n\
95 id: artShape; \n\
95 id: artShape; \n\
96 objectName: "artShape"; \n\
96 objectName: "artShape"; \n\
97− visible: image.status == Image.Ready; \n\
97+ visible: image.status === Image.Ready; \n\
98 readonly property alias image: artImage; \n\
98 readonly property alias image: artImage; \n\
99 %6 \n\
99 %6 \n\
100 width: root.fixedArtShapeSize.width; \n\
100 width: root.fixedArtShapeSize.width; \n\
@@ -128,11 +128,11 @@ var kArtShapeHolderCodeCardToolCard = 'Loader { \n\
128 onCardArtChanged: { if (item) { item.image.source = cardArt; } } \n\
128 onCardArtChanged: { if (item) { item.image.source = cardArt; } } \n\
129 active: cardArt != ""; \n\
129 active: cardArt != ""; \n\
130 asynchronous: %5; \n\
130 asynchronous: %5; \n\
131− visible: status == Loader.Ready; \n\
131+ visible: status === Loader.Ready; \n\
132 sourceComponent: Item { \n\
132 sourceComponent: Item { \n\
133 id: artShape; \n\
133 id: artShape; \n\
134 objectName: "artShape"; \n\
134 objectName: "artShape"; \n\
135− visible: image.status == Image.Ready; \n\
135+ visible: image.status === Image.Ready; \n\
136 readonly property alias image: artImage; \n\
136 readonly property alias image: artImage; \n\
137 %6 \n\
137 %6 \n\
138 width: image.status !== Image.Ready ? 0 : image.width; \n\
138 width: image.status !== Image.Ready ? 0 : image.width; \n\
@@ -206,7 +206,7 @@ var kOverlayLoaderCode = 'Loader { \n\
206 anchors.fill: artShapeLoader; \n\
206 anchors.fill: artShapeLoader; \n\
207 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; \n\
207 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; \n\
208 asynchronous: %1; \n\
208 asynchronous: %1; \n\
209− visible: showHeader && status == Loader.Ready; \n\
209+ visible: showHeader && status === Loader.Ready; \n\
210 sourceComponent: UbuntuShapeOverlay { \n\
210 sourceComponent: UbuntuShapeOverlay { \n\
211 id: overlay; \n\
211 id: overlay; \n\
212 property real luminance: Style.luminance(overlayColor); \n\
212 property real luminance: Style.luminance(overlayColor); \n\
@@ -263,7 +263,7 @@ var kMascotShapeLoaderCode = 'Loader { \n\
263 objectName: "mascotShapeLoader"; \n\
263 objectName: "mascotShapeLoader"; \n\
264 asynchronous: %2; \n\
264 asynchronous: %2; \n\
265 active: mascotImage.status === Image.Ready; \n\
265 active: mascotImage.status === Image.Ready; \n\
266− visible: showHeader && active && status == Loader.Ready; \n\
266+ visible: showHeader && active && status === Loader.Ready; \n\
267 width: units.gu(6); \n\
267 width: units.gu(6); \n\
268 height: units.gu(5.625); \n\
268 height: units.gu(5.625); \n\
269 sourceComponent: UbuntuShape { image: mascotImage } \n\
269 sourceComponent: UbuntuShape { image: mascotImage } \n\
tests/plugins/Dash/cardcreator/1.res+2−2
@@ -20,11 +20,11 @@ Loader {
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
21 active: cardArt != "";
21 active: cardArt != "";
22 asynchronous: true;
22 asynchronous: true;
23− visible: status == Loader.Ready;
23+ visible: status === Loader.Ready;
24 sourceComponent: Item {
24 sourceComponent: Item {
25 id: artShape;
25 id: artShape;
26 objectName: "artShape";
26 objectName: "artShape";
27− visible: image.status == Image.Ready;
27+ visible: image.status === Image.Ready;
28 readonly property alias image: artImage;
28 readonly property alias image: artImage;
29 UbuntuShape {
29 UbuntuShape {
30 anchors.fill: parent;
30 anchors.fill: parent;
tests/plugins/Dash/cardcreator/1.res.cardcreator+2−2
@@ -18,11 +18,11 @@ Loader {
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
19 active: cardArt != "";
19 active: cardArt != "";
20 asynchronous: false;
20 asynchronous: false;
21− visible: status == Loader.Ready;
21+ visible: status === Loader.Ready;
22 sourceComponent: Item {
22 sourceComponent: Item {
23 id: artShape;
23 id: artShape;
24 objectName: "artShape";
24 objectName: "artShape";
25− visible: image.status == Image.Ready;
25+ visible: image.status === Image.Ready;
26 readonly property alias image: artImage;
26 readonly property alias image: artImage;
27 UbuntuShape {
27 UbuntuShape {
28 anchors.fill: parent;
28 anchors.fill: parent;
tests/plugins/Dash/cardcreator/10.res+1−1
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
tests/plugins/Dash/cardcreator/10.res.cardcreator+1−1
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";
tests/plugins/Dash/cardcreator/11.res+3−3
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
@@ -58,11 +58,11 @@ Loader {
58 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
58 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
59 active: cardArt != "";
59 active: cardArt != "";
60 asynchronous: true;
60 asynchronous: true;
61− visible: status == Loader.Ready;
61+ visible: status === Loader.Ready;
62 sourceComponent: Item {
62 sourceComponent: Item {
63 id: artShape;
63 id: artShape;
64 objectName: "artShape";
64 objectName: "artShape";
65− visible: image.status == Image.Ready;
65+ visible: image.status === Image.Ready;
66 readonly property alias image: artImage;
66 readonly property alias image: artImage;
67 UbuntuShape {
67 UbuntuShape {
68 anchors.fill: parent;
68 anchors.fill: parent;
tests/plugins/Dash/cardcreator/11.res.cardcreator+3−3
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";
@@ -56,11 +56,11 @@ Loader {
56 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
56 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
57 active: cardArt != "";
57 active: cardArt != "";
58 asynchronous: false;
58 asynchronous: false;
59− visible: status == Loader.Ready;
59+ visible: status === Loader.Ready;
60 sourceComponent: Item {
60 sourceComponent: Item {
61 id: artShape;
61 id: artShape;
62 objectName: "artShape";
62 objectName: "artShape";
63− visible: image.status == Image.Ready;
63+ visible: image.status === Image.Ready;
64 readonly property alias image: artImage;
64 readonly property alias image: artImage;
65 UbuntuShape {
65 UbuntuShape {
66 anchors.fill: parent;
66 anchors.fill: parent;
tests/plugins/Dash/cardcreator/12.res+2−2
@@ -20,11 +20,11 @@ Loader {
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
21 active: cardArt != "";
21 active: cardArt != "";
22 asynchronous: true;
22 asynchronous: true;
23− visible: status == Loader.Ready;
23+ visible: status === Loader.Ready;
24 sourceComponent: Item {
24 sourceComponent: Item {
25 id: artShape;
25 id: artShape;
26 objectName: "artShape";
26 objectName: "artShape";
27− visible: image.status == Image.Ready;
27+ visible: image.status === Image.Ready;
28 readonly property alias image: artImage;
28 readonly property alias image: artImage;
29 UbuntuShape {
29 UbuntuShape {
30 anchors.fill: parent;
30 anchors.fill: parent;
tests/plugins/Dash/cardcreator/12.res.cardcreator+2−2
@@ -18,11 +18,11 @@ Loader {
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
19 active: cardArt != "";
19 active: cardArt != "";
20 asynchronous: false;
20 asynchronous: false;
21− visible: status == Loader.Ready;
21+ visible: status === Loader.Ready;
22 sourceComponent: Item {
22 sourceComponent: Item {
23 id: artShape;
23 id: artShape;
24 objectName: "artShape";
24 objectName: "artShape";
25− visible: image.status == Image.Ready;
25+ visible: image.status === Image.Ready;
26 readonly property alias image: artImage;
26 readonly property alias image: artImage;
27 UbuntuShape {
27 UbuntuShape {
28 anchors.fill: parent;
28 anchors.fill: parent;
tests/plugins/Dash/cardcreator/2.res+1−1
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
tests/plugins/Dash/cardcreator/2.res.cardcreator+1−1
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";
tests/plugins/Dash/cardcreator/3.res+2−2
@@ -20,11 +20,11 @@ Loader {
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
21 active: cardArt != "";
21 active: cardArt != "";
22 asynchronous: true;
22 asynchronous: true;
23− visible: status == Loader.Ready;
23+ visible: status === Loader.Ready;
24 sourceComponent: Item {
24 sourceComponent: Item {
25 id: artShape;
25 id: artShape;
26 objectName: "artShape";
26 objectName: "artShape";
27− visible: image.status == Image.Ready;
27+ visible: image.status === Image.Ready;
28 readonly property alias image: artImage;
28 readonly property alias image: artImage;
29 ProportionalShape {
29 ProportionalShape {
30 anchors.fill: parent;
30 anchors.fill: parent;
tests/plugins/Dash/cardcreator/3.res.cardcreator+2−2
@@ -18,11 +18,11 @@ Loader {
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
19 active: cardArt != "";
19 active: cardArt != "";
20 asynchronous: false;
20 asynchronous: false;
21− visible: status == Loader.Ready;
21+ visible: status === Loader.Ready;
22 sourceComponent: Item {
22 sourceComponent: Item {
23 id: artShape;
23 id: artShape;
24 objectName: "artShape";
24 objectName: "artShape";
25− visible: image.status == Image.Ready;
25+ visible: image.status === Image.Ready;
26 readonly property alias image: artImage;
26 readonly property alias image: artImage;
27 ProportionalShape {
27 ProportionalShape {
28 anchors.fill: parent;
28 anchors.fill: parent;
tests/plugins/Dash/cardcreator/4.res+1−1
@@ -32,7 +32,7 @@ Loader {
32 objectName: "mascotShapeLoader";
32 objectName: "mascotShapeLoader";
33 asynchronous: true;
33 asynchronous: true;
34 active: mascotImage.status === Image.Ready;
34 active: mascotImage.status === Image.Ready;
35− visible: showHeader && active && status == Loader.Ready;
35+ visible: showHeader && active && status === Loader.Ready;
36 width: units.gu(6);
36 width: units.gu(6);
37 height: units.gu(5.625);
37 height: units.gu(5.625);
38 sourceComponent: UbuntuShape { image: mascotImage }
38 sourceComponent: UbuntuShape { image: mascotImage }
tests/plugins/Dash/cardcreator/4.res.cardcreator+1−1
@@ -29,7 +29,7 @@ Loader {
29 objectName: "mascotShapeLoader";
29 objectName: "mascotShapeLoader";
30 asynchronous: false;
30 asynchronous: false;
31 active: mascotImage.status === Image.Ready;
31 active: mascotImage.status === Image.Ready;
32− visible: showHeader && active && status == Loader.Ready;
32+ visible: showHeader && active && status === Loader.Ready;
33 width: units.gu(6);
33 width: units.gu(6);
34 height: units.gu(5.625);
34 height: units.gu(5.625);
35 sourceComponent: UbuntuShape { image: mascotImage }
35 sourceComponent: UbuntuShape { image: mascotImage }
tests/plugins/Dash/cardcreator/5.res+3−3
@@ -20,11 +20,11 @@ Loader {
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
20 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
21 active: cardArt != "";
21 active: cardArt != "";
22 asynchronous: true;
22 asynchronous: true;
23− visible: status == Loader.Ready;
23+ visible: status === Loader.Ready;
24 sourceComponent: Item {
24 sourceComponent: Item {
25 id: artShape;
25 id: artShape;
26 objectName: "artShape";
26 objectName: "artShape";
27− visible: image.status == Image.Ready;
27+ visible: image.status === Image.Ready;
28 readonly property alias image: artImage;
28 readonly property alias image: artImage;
29 width: root.fixedArtShapeSize.width;
29 width: root.fixedArtShapeSize.width;
30 height: root.fixedArtShapeSize.height;
30 height: root.fixedArtShapeSize.height;
@@ -45,7 +45,7 @@ Loader {
45 anchors.fill: artShapeLoader;
45 anchors.fill: artShapeLoader;
46 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
46 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
47 asynchronous: true;
47 asynchronous: true;
48− visible: showHeader && status == Loader.Ready;
48+ visible: showHeader && status === Loader.Ready;
49 sourceComponent: UbuntuShapeOverlay {
49 sourceComponent: UbuntuShapeOverlay {
50 id: overlay;
50 id: overlay;
51 property real luminance: Style.luminance(overlayColor);
51 property real luminance: Style.luminance(overlayColor);
tests/plugins/Dash/cardcreator/5.res.cardcreator+3−3
@@ -18,11 +18,11 @@ Loader {
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
18 onCardArtChanged: { if (item) { item.image.source = cardArt; } }
19 active: cardArt != "";
19 active: cardArt != "";
20 asynchronous: false;
20 asynchronous: false;
21− visible: status == Loader.Ready;
21+ visible: status === Loader.Ready;
22 sourceComponent: Item {
22 sourceComponent: Item {
23 id: artShape;
23 id: artShape;
24 objectName: "artShape";
24 objectName: "artShape";
25− visible: image.status == Image.Ready;
25+ visible: image.status === Image.Ready;
26 readonly property alias image: artImage;
26 readonly property alias image: artImage;
27 width: image.status !== Image.Ready ? 0 : image.width;
27 width: image.status !== Image.Ready ? 0 : image.width;
28 height: image.status !== Image.Ready ? 0 : image.height;
28 height: image.status !== Image.Ready ? 0 : image.height;
@@ -43,7 +43,7 @@ Loader {
43 anchors.fill: artShapeLoader;
43 anchors.fill: artShapeLoader;
44 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
44 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
45 asynchronous: false;
45 asynchronous: false;
46− visible: showHeader && status == Loader.Ready;
46+ visible: showHeader && status === Loader.Ready;
47 sourceComponent: UbuntuShapeOverlay {
47 sourceComponent: UbuntuShapeOverlay {
48 id: overlay;
48 id: overlay;
49 property real luminance: Style.luminance(overlayColor);
49 property real luminance: Style.luminance(overlayColor);
tests/plugins/Dash/cardcreator/6.res+1−1
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
tests/plugins/Dash/cardcreator/6.res.cardcreator+1−1
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";
tests/plugins/Dash/cardcreator/7.res+1−1
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
tests/plugins/Dash/cardcreator/7.res.cardcreator+1−1
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";
tests/plugins/Dash/cardcreator/8.res+1−1
@@ -16,7 +16,7 @@ Loader {
16 objectName: "backgroundLoader";
16 objectName: "backgroundLoader";
17 anchors.fill: parent;
17 anchors.fill: parent;
18 asynchronous: true;
18 asynchronous: true;
19− visible: status == Loader.Ready;
19+ visible: status === Loader.Ready;
20 sourceComponent: UbuntuShape {
20 sourceComponent: UbuntuShape {
21 objectName: "background";
21 objectName: "background";
22 radius: "medium";
22 radius: "medium";
tests/plugins/Dash/cardcreator/8.res.cardcreator+1−1
@@ -14,7 +14,7 @@ Loader {
14 objectName: "backgroundLoader";
14 objectName: "backgroundLoader";
15 anchors.fill: parent;
15 anchors.fill: parent;
16 asynchronous: false;
16 asynchronous: false;
17− visible: status == Loader.Ready;
17+ visible: status === Loader.Ready;
18 sourceComponent: UbuntuShape {
18 sourceComponent: UbuntuShape {
19 objectName: "background";
19 objectName: "background";
20 radius: "medium";
20 radius: "medium";