@@ -25,12 +25,12 @@ ListView {
25 property var cardTool: null
25 property var cardTool: null
26 property real scopeHeight: 0
26 property real scopeHeight: 0
27 property real scopeWidth: 0
27 property real scopeWidth: 0
28+ property real appliedScale: 1
29 orientation: ListView.Horizontal
30 orientation: ListView.Horizontal
30− // TODO root.parent.scale
31 // TODO current item
31 // TODO current item
33− spacing: units.gu(2) / root.parent.scale
33+ spacing: units.gu(2) / appliedScale
35 delegate: Loader {
35 delegate: Loader {
36 id: loader
36 id: loader
@@ -38,8 +38,8 @@ ListView {
39 sourceComponent: cardTool.cardComponent
39 sourceComponent: cardTool.cardComponent
40 onLoaded: {
40 onLoaded: {
41− item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight / root.parent.scale; });
41+ item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight / appliedScale; });
42− item.fontScale = Qt.binding(function() { return 1 / root.parent.scale; });
42+ item.fontScale = Qt.binding(function() { return 1 / appliedScale; });
43 item.height = Qt.binding(function() { return root.scopeHeight; });
43 item.height = Qt.binding(function() { return root.scopeHeight; });
44 item.width = Qt.binding(function() { return root.scopeWidth; });
44 item.width = Qt.binding(function() { return root.scopeWidth; });
45 item.cardData = Qt.binding(function() { return model; });
45 item.cardData = Qt.binding(function() { return model; });