on xenial help sign in
Fix autopilot test
164cbbeAlbert Astals
qml/Dash/Card.qml+2−1
@@ -29,6 +29,7 @@ AbstractButton {
29 property int headerAlignment: Text.AlignLeft
29 property int headerAlignment: Text.AlignLeft
30 readonly property int headerHeight: headerLoader.item ? headerLoader.item.height : 0
30 readonly property int headerHeight: headerLoader.item ? headerLoader.item.height : 0
31 property int fixedHeaderHeight: -1
31 property int fixedHeaderHeight: -1
32+ readonly property string title: cardData && cardData["title"] || ""
32
33
33 property bool showHeader: true
34 property bool showHeader: true
34
35
@@ -196,7 +197,7 @@ AbstractButton {
196 objectName: "cardHeader"
197 objectName: "cardHeader"
197
198
198 mascot: cardData && cardData["mascot"] || ""
199 mascot: cardData && cardData["mascot"] || ""
199− title: cardData && cardData["title"] || ""
200+ title: root.title
200 subtitle: cardData && cardData["subtitle"] || ""
201 subtitle: cardData && cardData["subtitle"] || ""
201
202
202 titleWeight: components && components["subtitle"] ? Font.DemiBold : Font.Normal
203 titleWeight: components && components["subtitle"] ? Font.DemiBold : Font.Normal