c&p mistake found by Cimi
commit849ae541f85cd7cb5dfaa5c277c7994d0b299dbd
authorAlbert Astals <albert.astals@canonical.com>
dateFri 13 Jun 2014, 12:01 (12 years ago)
parentf782fac
plugins/Dash/CardCreator.js+1−1
@@ -69,7 +69,7 @@ var kArtShapeHolderCode = 'Item { \n\
6969 objectName: "artShape"; \n\
7070 radius: "medium"; \n\
7171 visible: image.status == Image.Ready; \n\
72− readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.height / root.fixedArtShapeSize.height : -1; \n\
72+ readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; \n\
7373 readonly property real aspect: fixedArtShapeSizeAspect != -1 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; \n\
7474 readonly property bool aspectSmallerThanImageAspect: aspect < image.aspect; \n\
7575 Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } \n\
tests/plugins/Dash/cardcreator/1.res+1−1
@@ -30,7 +30,7 @@ Item {
3030 objectName: "artShape";
3131 radius: "medium";
3232 visible: image.status == Image.Ready;
33− readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.height / root.fixedArtShapeSize.height : -1;
33+ readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
3434 readonly property real aspect: fixedArtShapeSizeAspect != -1 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
3535 readonly property bool aspectSmallerThanImageAspect: aspect < image.aspect;
3636 Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }
tests/plugins/Dash/cardcreator/3.res+1−1
@@ -30,7 +30,7 @@ Item {
3030 objectName: "artShape";
3131 radius: "medium";
3232 visible: image.status == Image.Ready;
33− readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.height / root.fixedArtShapeSize.height : -1;
33+ readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
3434 readonly property real aspect: fixedArtShapeSizeAspect != -1 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
3535 readonly property bool aspectSmallerThanImageAspect: aspect < image.aspect;
3636 Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }
tests/plugins/Dash/cardcreator/5.res+1−1
@@ -30,7 +30,7 @@ Item {
3030 objectName: "artShape";
3131 radius: "medium";
3232 visible: image.status == Image.Ready;
33− readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.height / root.fixedArtShapeSize.height : -1;
33+ readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height != -1 && root.fixedArtShapeSize.width != -1) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
3434 readonly property real aspect: fixedArtShapeSizeAspect != -1 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
3535 readonly property bool aspectSmallerThanImageAspect: aspect < image.aspect;
3636 Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }