on xenial help sign in
Proper title alignment.
4bb5461Michał Karnicki
qml/Dash/CardTool.qml+1−1
@@ -120,7 +120,7 @@ Item {
120 var isOnlyTextComponent = !hasSubtitle && !hasPrice && !hasSummary;
120 var isOnlyTextComponent = !hasSubtitle && !hasPrice && !hasSummary;
121 if (!isOnlyTextComponent) return Text.AlignLeft;
121 if (!isOnlyTextComponent) return Text.AlignLeft;
122
122
123− return (template["card-layout"] === "horizontal") ? Text.AlignHCenter : Text.AlignLeft;
123+ return (template["card-layout"] === "horizontal") ? Text.AlignLeft : Text.AlignHCenter;
124 }
124 }
125
125
126 Card {
126 Card {
tests/qmltests/Dash/tst_CardTool.qml+2−2
@@ -323,9 +323,9 @@ Rectangle {
323 function test_card_header_component_alignment_data() {
323 function test_card_header_component_alignment_data() {
324 return [
324 return [
325 { tag: "Title - vertical", component: "titleLabel", property: "headerAlignment",
325 { tag: "Title - vertical", component: "titleLabel", property: "headerAlignment",
326− value: Text.AlignLeft, index: 11, layout_index: 0 },
326+ value: Text.AlignHCenter, index: 11, layout_index: 0 },
327 { tag: "Title - horizontal", component: "titleLabel", property: "headerAlignment",
327 { tag: "Title - horizontal", component: "titleLabel", property: "headerAlignment",
328− value: Text.AlignHCenter, index: 12, layout_index: 0},
328+ value: Text.AlignLeft, index: 12, layout_index: 0},
329 { tag: "Title, subtitle - vertical", component: "titleLabel", property: "headerAlignment",
329 { tag: "Title, subtitle - vertical", component: "titleLabel", property: "headerAlignment",
330 value: Text.AlignLeft, index: 13, layout_index: 0},
330 value: Text.AlignLeft, index: 13, layout_index: 0},
331 { tag: "Title, price - horizontal", component: "titleLabel", property: "headerAlignment",
331 { tag: "Title, price - horizontal", component: "titleLabel", property: "headerAlignment",