@@ -514,7 +514,9 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
514514 }
515515
516516 if (hasArt) {
517− code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
517+ if (isCardTool) {
518+ code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
519+ }
518520
519521 var artShapeAspect;
520522 if (isCardTool) {
@@ -582,7 +584,9 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
582584 .arg(fallbackStatusCode)
583585 .arg(fallbackURICode);
584586 } else {
585− code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
587+ if (isCardTool) {
588+ code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
589+ }
586590 }
587591
588592 if (headerAsOverlay) {